/* 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: #f8f6f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables based on colores.png */
:root {
    --primary-green: #8b7d3a;
    --dark-green: #5a5228;
    --light-green: #b8a661;
    --accent-orange: #f49c3d;
    --accent-teal: #4a9b8e;
    --accent-blue: #2c5aa0;
    --cream: #f8f6f0;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e2d 0%, #1a2419 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-orange);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #f8f6f0;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav a:hover {
    color: var(--accent-orange);
    background-color: rgba(248, 246, 240, 0.1);
    transform: translateY(-2px);
}

.nav a:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-height: 50px;
    box-sizing: border-box;
    text-shadow: none;
    /* Ensure high contrast */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #ffffff;
    border: 2px solid var(--accent-orange);
    /* High contrast ratio 4.5:1 minimum */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background-color: #d6751a;
    border-color: #d6751a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 156, 61, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-green);
    text-shadow: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

/* Dark background button variants */
.barra-section .btn-secondary,
.contact .btn-secondary {
    background-color: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--white);
    text-shadow: none;
}

.barra-section .btn-secondary:hover,
.contact .btn-secondary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--white);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
}

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

.service-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--cream);
    border-radius: 10px;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Main Services */
.main-services {
    padding: 60px 0;
    background-color: var(--cream);
}

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

.service-card {
    text-align: center;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Tiradors Section */
.tiradors-section {
    padding: 80px 0;
    background-color: var(--white);
}

.tiradors-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Steps */
.steps {
    margin: 4rem 0;
}

.steps h3 {
    text-align: center;
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.step {
    text-align: center;
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 15px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.step h4 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Packs Section */
.packs-section {
    margin: 4rem 0;
    text-align: center;
}

.packs-section h3 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.packs-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin: 2rem auto;
    display: block;
}

.packs-table {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.pack-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 2fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.pack-header {
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: bold;
}

.pack-row:nth-child(even) {
    background-color: var(--cream);
}

.pack-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.feature {
    background-color: var(--cream);
    padding: 1rem;
    border-radius: 10px;
    color: var(--primary-green);
    font-weight: 500;
}

/* Barra Section */
.barra-section {
    padding: 80px 0;
    background-color: var(--cream);
}

.barra-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.barra-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin: 2rem auto;
    display: block;
}

.barra-buttons {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.barra-buttons .btn {
    margin: 0;
}

.barra-features {
    max-width: 800px;
    margin: 3rem auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin: 1rem 0;
    background-color: var(--white);
    padding: 1rem;
    border-radius: 10px;
}

.check {
    color: var(--accent-teal);
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Pricing Table */
.pricing-table {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.pricing-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.pricing-header {
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: bold;
}

.pricing-row:nth-child(even) {
    background-color: var(--cream);
}

.pricing-note {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Carousel */
.carousel-section {
    padding: 80px 0;
    background-color: var(--white);
}

.carousel-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
}

.carousel {
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    animation: scroll 20s linear infinite;
}

.carousel-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: var(--cream);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
}

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

.testimonial {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--text-dark);
}

.testimonial cite {
    color: var(--primary-green);
    font-weight: bold;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background-color: var(--white);
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
}

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

.faq-item {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 15px;
}

.faq-item h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Contact */
.contact {
    padding: 80px 0;
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--text-dark);
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.contact-form textarea {
    grid-column: 1 / -1;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

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

/* New Styles for Updated Content */
.services-list {
    max-width: 800px;
    margin: 0 auto;
}

.services-list .service-item {
    background-color: transparent;
    padding: 0.5rem 0;
    text-align: left;
}

.services-list .service-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.more-info {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--cream);
    border-radius: 10px;
}

.more-info a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
}

.more-info a:hover {
    text-decoration: underline;
}

.services-intro {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.foto-label {
    font-weight: bold;
    color: var(--primary-green);
    text-align: center;
    margin: 1rem 0 0.5rem 0;
    font-size: 0.9rem;
}

.foto3-container,
.foto5-container,
.foto6-container,
.foto7-container,
.foto8-container,
.foto8-final-container {
    text-align: center;
    margin: 2rem 0;
}

.section-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    margin: 0.5rem auto;
    display: block;
}

.contact-info {
    background-color: var(--cream);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
}

.packs-intro {
    text-align: center;
    font-size: 1.1rem;
    margin: 1rem 0 2rem 0;
    color: var(--text-dark);
}

.extras {
    background-color: var(--cream);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
}

.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-green), transparent);
    margin: 3rem 0;
}

.barra-adaptation {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.barra-options {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.barra-options li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.beer-types {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.beer-types ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.beer-types li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.why-trust {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.different-features {
    margin: 1rem 0;
}

.form-subtitle {
    font-style: italic;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Improved contrast for form elements */
.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--text-dark);
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(244, 156, 61, 0.2);
}

/* Enhanced table contrast */
.packs-table,
.pricing-table {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 2rem 0;
    border: 2px solid var(--cream);
}

.pack-header,
.pricing-header {
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: bold;
}

.pack-row:nth-child(even):not(.pack-header),
.pricing-row:nth-child(even):not(.pricing-header) {
    background-color: var(--cream);
}

.pack-row:nth-child(odd):not(.pack-header),
.pricing-row:nth-child(odd):not(.pricing-header) {
    background-color: var(--white);
}

/* Enhanced feature lists */
.pack-features .feature,
.feature-item {
    background-color: var(--white);
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--accent-teal);
}

/* Form validation styles */
.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.contact-form input.error:focus,
.contact-form select.error:focus,
.contact-form textarea.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Accessibility improvements */
.btn:focus {
    outline: 3px solid var(--accent-orange) !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000000;
        color: #ffffff;
        border: 3px solid #ffffff;
    }

    .btn-secondary {
        background-color: #ffffff;
        color: #000000;
        border: 3px solid #000000;
    }

    .pack-header,
    .pricing-header {
        background-color: #000000;
        color: #ffffff;
        border: 2px solid #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .service-card,
    .testimonial,
    .carousel-track {
        transition: none;
        animation: none;
    }
    
    .carousel-track {
        transform: none;
    }
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2c3e2d 0%, #1a2419 100%);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 2px solid var(--accent-orange);
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
    
    .nav.mobile-open {
        display: flex !important;
    }
    
    .nav a {
        text-align: center;
        padding: 12px 20px;
        border: 1px solid rgba(248, 246, 240, 0.2);
        background-color: rgba(248, 246, 240, 0.05);
        margin: 0;
    }
    
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        color: #f8f6f0;
        font-size: 1.5rem;
        padding: 8px;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn:hover {
        background-color: rgba(248, 246, 240, 0.1);
        color: var(--accent-orange);
    }
    
    .hero {
        margin-top: 76px;
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pack-row {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 0.5rem;
        padding: 1.5rem 1rem;
    }

    .pack-header {
        display: none;
    }

    .pack-name,
    .pack-includes,
    .pack-price,
    .pack-ideal {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.5rem 0;
    }

    .pack-name::before {
        content: "Pack";
        font-weight: bold;
        color: var(--primary-green);
        font-size: 0.9rem;
    }

    .pack-includes::before {
        content: "Què inclou";
        font-weight: bold;
        color: var(--primary-green);
        font-size: 0.9rem;
    }

    .pack-price::before {
        content: "Preu/dia";
        font-weight: bold;
        color: var(--primary-green);
        font-size: 0.9rem;
    }

    .pack-ideal::before {
        content: "Ideal per a...";
        font-weight: bold;
        color: var(--primary-green);
        font-size: 0.9rem;
    }
    
    .pricing-row {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 0.5rem;
        padding: 1.5rem 1rem;
    }

    .pricing-header {
        display: none;
    }

    .pricing-row > div {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.5rem 0;
    }

    .pricing-row > div:nth-child(1)::before {
        content: "Assistents";
        font-weight: bold;
        color: var(--primary-green);
        font-size: 0.9rem;
    }

    .pricing-row > div:nth-child(2)::before {
        content: "Barra";
        font-weight: bold;
        color: var(--primary-green);
        font-size: 0.9rem;
    }

    .pricing-row > div:nth-child(3)::before {
        content: "Tiradors";
        font-weight: bold;
        color: var(--primary-green);
        font-size: 0.9rem;
    }

    .pricing-row > div:nth-child(4)::before {
        content: "Barrils";
        font-weight: bold;
        color: var(--primary-green);
        font-size: 0.9rem;
    }

    .pricing-row > div:nth-child(5)::before {
        content: "Cambrers/es";
        font-weight: bold;
        color: var(--primary-green);
        font-size: 0.9rem;
    }

    .pricing-row > div:nth-child(6)::before {
        content: "Cost";
        font-weight: bold;
        color: var(--primary-green);
        font-size: 0.9rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 18px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .contact-form textarea {
        min-height: 120px;
        grid-column: 1;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-form .btn-large {
        width: 100%;
        padding: 18px 20px;
    }

    .services-row {
        grid-template-columns: 1fr;
    }
    
    .carousel-track {
        animation-duration: 15s;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .service-card,
    .step,
    .testimonial {
        padding: 1.5rem;
    }

    .carousel-image {
        width: 250px;
        height: 150px;
    }

    .services-row {
        grid-template-columns: 1fr;
    }
}