/**
 * Brobrew Theme Styles
 * Rustic brewery theme with amber and brown colors
 */

:root {
    --color-cream: #f5f0e6;
    --color-amber: #d4a03a;
    --color-amber-dark: #b8862d;
    --color-brown: #4a3728;
    --color-brown-dark: #2e231a;
    --color-green: #4a6741;
    --color-text: #3d3d3d;
    --color-text-light: #6b6b6b;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Crimson Text', serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1.1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-brown-dark);
}

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

a:hover {
    color: var(--color-amber);
}

/* Texture overlay */
.texture-overlay {
    position: relative;
}

.texture-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Navigation */
.navbar-rustic {
    background-color: var(--color-brown-dark);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-cream) !important;
    letter-spacing: 3px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-cream) !important;
    letter-spacing: 2px;
    margin: 0 0.8rem;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-amber) !important;
}

.nav-link.active {
    color: var(--color-amber) !important;
    opacity: 1;
}

.navbar-nav .dropdown-menu {
    background: var(--color-brown-dark);
    border: 1px solid rgba(212, 160, 58, 0.3);
    border-radius: 0;
    margin-top: 0;
}

.navbar-nav .dropdown-item {
    color: var(--color-cream);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.7rem 1.5rem;
}

.navbar-nav .dropdown-item:hover {
    background: var(--color-amber);
    color: var(--color-brown-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(46, 35, 26, 0.75), rgba(46, 35, 26, 0.85)),
                url('https://images.unsplash.com/photo-1559526324-593bc073d938?w=1920') center/cover fixed;
}

.hero-content {
    text-align: center;
    padding: 4rem 2rem;
}

.hero-emblem {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border: 3px solid var(--color-amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-amber);
}

.hero h1 {
    font-size: 4rem;
    color: var(--color-cream);
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-amber);
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(245, 240, 230, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Banner Section - Title should be white/cream for visibility */
.banner h1,
.banner h2,
.banner h3,
.banner h5,
.banner .display-4,
.banner .display-5,
.banner .carousel-caption h5 {
    color: var(--color-cream) !important;
}

.banner p,
.banner .lead,
.banner .carousel-caption p {
    color: rgba(245, 240, 230, 0.9) !important;
}

.btn-rustic {
    background-color: var(--color-amber);
    color: var(--color-brown-dark);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    padding: 1rem 2.5rem;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-rustic:hover {
    background-color: var(--color-amber-dark);
    color: var(--color-cream);
    transform: translateY(-2px);
}

.btn-outline-rustic {
    border: 2px solid var(--color-amber);
    color: var(--color-amber);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    padding: 1rem 2.5rem;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-rustic:hover {
    background-color: var(--color-amber);
    color: var(--color-brown-dark);
}

/* Decorative divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    max-width: 300px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-amber);
}

.section-divider-icon {
    padding: 0 1rem;
    color: var(--color-amber);
    font-size: 1.5rem;
}

.section-label {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--color-amber);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.8rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background-color: var(--color-cream);
    position: relative;
}

.about-frame {
    border: 8px solid var(--color-brown);
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.about-frame img {
    width: 100%;
    display: block;
}

.about-text {
    padding: 2rem 0;
}

.about-text p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    padding-right: 0.5rem;
    color: var(--color-amber);
}

/* Beers Section */
.beers-section {
    padding: 8rem 0;
    background: var(--color-brown);
    position: relative;
}

.beers-section .section-label,
.beers-section .section-title {
    color: var(--color-cream);
}

.beer-card-rustic {
    background: var(--color-cream);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
}

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

.beer-image-rustic {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.beer-image-rustic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.beer-card-rustic:hover .beer-image-rustic img {
    transform: scale(1.05);
}

.beer-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brown);
    color: var(--color-cream);
    font-size: 3rem;
}

.beer-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--color-amber);
    color: var(--color-brown-dark);
    padding: 0.3rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 1px;
    transform: rotate(45deg);
}

.beer-content-rustic {
    padding: 1.5rem;
    text-align: center;
    border-top: 4px solid var(--color-amber);
}

.beer-type {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.beer-name-rustic {
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    white-space: normal;
    line-height: 1.3;
}

.beer-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.beer-abv {
    display: inline-block;
    background: var(--color-brown);
    color: var(--color-cream);
    padding: 0.3rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Values Section */
.values-section {
    padding: 8rem 0;
    background: var(--color-cream);
}

.value-item {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--color-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-brown);
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    background: var(--color-brown);
    color: var(--color-cream);
}

.value-item h3 {
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.value-item p {
    color: var(--color-text-light);
}

/* Quote Section */
.quote-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(74, 55, 40, 0.9), rgba(74, 55, 40, 0.9)),
                url('https://images.unsplash.com/photo-1558642452-9d2a7deb7f62?w=1920') center/cover fixed;
    text-align: center;
}

.quote-text {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 2rem;
    color: var(--color-cream);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.quote-author {
    font-family: var(--font-heading);
    color: var(--color-amber);
    letter-spacing: 3px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 8rem 0;
    background: var(--color-cream);
}

.testimonial-rustic {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid rgba(74, 55, 40, 0.2);
    background: white;
}

.testimonial-rustic p {
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-rustic p::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-amber);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

.testimonial-author-name {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}

.testimonial-author-role {
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Blog Section */
.blog-section {
    padding: 8rem 0;
    background: var(--color-brown-dark);
}

.blog-section .section-label,
.blog-section .section-title {
    color: var(--color-cream);
}

.blog-card-rustic {
    background: var(--color-cream);
    overflow: hidden;
    height: 100%;
}

.blog-image-rustic {
    height: 220px;
    overflow: hidden;
}

.blog-image-rustic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-rustic:hover .blog-image-rustic img {
    transform: scale(1.05);
}

.blog-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brown);
    color: var(--color-cream);
    font-size: 3rem;
}

.blog-content-rustic {
    padding: 1.5rem;
}

.blog-date-rustic {
    font-style: italic;
    color: var(--color-amber-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-title-rustic {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-title-rustic a {
    color: var(--color-brown-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title-rustic a:hover {
    color: var(--color-amber);
}

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

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 0;
    background: var(--color-amber);
    text-align: center;
}

.newsletter-section h2 {
    color: var(--color-brown-dark);
    margin-bottom: 1rem;
}

.newsletter-section p {
    color: var(--color-brown);
    margin-bottom: 2rem;
}

.newsletter-form-rustic {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.newsletter-form-rustic input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--color-brown);
    background: var(--color-cream);
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form-rustic button {
    background: var(--color-brown-dark);
    color: var(--color-cream);
    padding: 1rem 2rem;
    border: 2px solid var(--color-brown-dark);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form-rustic button:hover {
    background: var(--color-brown);
}

/* Footer */
.footer {
    background: var(--color-brown-dark);
    padding: 5rem 0 2rem;
    color: var(--color-cream);
}

.footer h4 {
    font-family: var(--font-heading);
    color: var(--color-amber);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-text {
    color: rgba(245, 240, 230, 0.7);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
    color: rgba(245, 240, 230, 0.7);
}

.footer-links a {
    color: rgba(245, 240, 230, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-amber);
}

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

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 240, 230, 0.3);
    color: var(--color-cream);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-amber);
    border-color: var(--color-amber);
    color: var(--color-brown-dark);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 240, 230, 0.1);
    text-align: center;
    color: rgba(245, 240, 230, 0.5);
}

.footer-bottom a {
    color: var(--color-amber);
}

/* Language Switcher */
.lang-switcher a {
    color: rgba(245, 240, 230, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.lang-switcher a.active,
.lang-switcher a:hover {
    color: var(--color-amber);
}

/* Beer Card Link */
.beer-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.beer-card-link:hover .beer-card-rustic {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.beer-card-link:hover .beer-name-rustic {
    color: var(--color-amber);
}

/* Beer Card Bootstrap styles (default template) */
.beer-card-link .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.beer-card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.beer-card-link .card .fw-bolder {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    white-space: normal;
    line-height: 1.3;
}

/* Beer Detail Page */
.beer-hero {
    padding: 8rem 0 4rem;
    background-color: var(--color-cream);
    margin-top: 70px;
}

.beer-hero-image {
    position: relative;
    border: 8px solid var(--color-brown);
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: white;
}

.beer-hero-image img {
    width: 100%;
    display: block;
}

.beer-placeholder-large {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brown);
    color: var(--color-cream);
    font-size: 5rem;
}

.beer-status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.beer-status-limited {
    background: var(--color-amber);
    color: var(--color-brown-dark);
}

.beer-status-sold_out {
    background: #6c757d;
    color: white;
}

.beer-status-seasonal {
    background: var(--color-green);
    color: white;
}

.beer-hero-content {
    padding: 2rem 0;
}

.beer-title {
    font-size: 3rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--color-brown-dark);
}

.beer-characteristics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border: 1px solid rgba(74, 55, 40, 0.2);
}

.beer-char-item {
    display: flex;
    flex-direction: column;
}

.beer-char-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.3rem;
}

.beer-char-value {
    font-size: 1.2rem;
    color: var(--color-brown-dark);
}

.beer-char-highlight {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-amber-dark);
}

.beer-description-full {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem 0;
}

.beer-description-full p {
    margin-bottom: 1rem;
}

.beer-ingredients {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-brown);
    color: var(--color-cream);
}

.beer-ingredients h4 {
    font-family: var(--font-heading);
    color: var(--color-amber);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.beer-ingredients h4 i {
    margin-right: 0.5rem;
}

.beer-ingredients p {
    margin: 0;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .quote-text {
        font-size: 1.4rem;
    }

    .newsletter-form-rustic {
        flex-direction: column;
    }

    .beer-title {
        font-size: 2rem;
    }

    .beer-characteristics {
        grid-template-columns: 1fr;
    }

    .beer-hero {
        padding: 6rem 0 2rem;
    }

    /* Beer card mobile improvements */
    .beer-name-rustic {
        font-size: 1.1rem;
        letter-spacing: 0;
        line-height: 1.4;
        min-height: auto;
        padding: 0 0.25rem;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
        white-space: normal;
    }

    .beer-content-rustic {
        padding: 1rem 0.5rem;
    }

    .beer-type {
        font-size: 0.85rem;
    }

    .beer-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .beer-abv {
        font-size: 0.75rem;
        padding: 0.2rem 0.8rem;
    }

    .beer-image-rustic {
        height: 250px;
    }

    /* Ajuster les colonnes pour mobile */
    .beers-section .row.g-4 > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Beer card Bootstrap mobile improvements (default template) */
    .beer-card-link .card .fw-bolder {
        font-size: 1rem;
        letter-spacing: 0;
        line-height: 1.35;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }

    .beer-card-link .card .card-body {
        padding: 0.75rem;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    .beer-name-rustic {
        font-size: 1.1rem;
        letter-spacing: 0;
        line-height: 1.35;
        padding: 0 0.25rem;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
        white-space: normal;
    }

    .beer-content-rustic {
        padding: 1rem 0.75rem;
    }

    .beer-image-rustic {
        height: 200px;
    }

    .beer-card-rustic {
        margin-bottom: 1rem;
    }

    .beer-type {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .beer-description {
        font-size: 0.85rem;
        line-height: 1.5;
        /* Limite à 3 lignes */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .beer-abv {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    /* UNE SEULE colonne sur mobile pour éviter la troncature des noms */
    .beers-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Beer card Bootstrap - extra small screens (default template) */
    .beer-card-link .card .fw-bolder {
        font-size: 1rem;
        line-height: 1.3;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }

    .beer-card-link .card .card-body {
        padding: 0.75rem;
    }

    .beer-card-link .card .text-muted {
        font-size: 0.8rem;
    }
}

/* Very small screens (320px width phones) */
@media (max-width: 360px) {
    .beer-name-rustic {
        font-size: 1rem;
        letter-spacing: 0;
        line-height: 1.3;
        padding: 0 0.2rem;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }

    .beer-content-rustic {
        padding: 0.75rem 0.5rem;
    }

    .beer-image-rustic {
        height: 180px;
    }

    .beer-type {
        font-size: 0.8rem;
    }

    .beer-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .beer-abv {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }

    /* Beer card Bootstrap - very small screens (default template) */
    .beer-card-link .card .fw-bolder {
        font-size: 0.95rem;
        line-height: 1.3;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }

    .beer-card-link .card .card-body {
        padding: 0.6rem 0.5rem;
    }

    .beer-card-link .card .text-muted {
        font-size: 0.75rem;
    }
}
