/* ===== RESET & BASIC STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a7c59;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #5ba056;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #4a7c59;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a7c59;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #4a7c59;
    color: white;
}

.btn-primary:hover {
    background: #5ba056;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #4a7c59;
    border: 2px solid #4a7c59;
}

.btn-secondary:hover {
    background: #4a7c59;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
}

.btn-outline:hover {
    background: #f8f9fa;
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: #f8f9fa;
}

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

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

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

.service-icon {
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #4a7c59;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a7c59;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #4a7c59;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.about-icon {
    text-align: center;
}

/* ===== REVIEWS SECTION ===== */
.reviews {
    background: #f8f9fa;
}

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

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.review-icon {
    margin-bottom: 1rem;
}

.review-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-card p {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: bold;
    color: #4a7c59;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
    background: #4a7c59;
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    white-space: nowrap;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: #4a7c59;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a7c59;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    color: #4a7c59;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover,
.footer-section ul li a.active {
    color: #5ba056;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #4a7c59;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #5ba056;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 20px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    color: #333;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-option {
    margin-bottom: 1.5rem;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    margin: 0;
}

.cookie-option p {
    color: #666;
    font-size: 0.9rem;
    margin-left: 1.5rem;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cookie-settings-link {
    background: none;
    border: none;
    color: #ccc;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.cookie-settings-link:hover {
    color: #5ba056;
}

/* ===== BLOG STYLES ===== */
.blog-header {
    background: #f8f9fa;
    padding: 120px 0 80px;
    text-align: center;
}

.blog-header-content h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
}

.blog-articles {
    padding: 80px 0;
}

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

.article-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    transition: transform 0.3s ease;
}

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

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.article-date {
    color: #4a7c59;
}

.article-category {
    background: #4a7c59;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.article-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.article-card h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h2 a:hover {
    color: #4a7c59;
}

.article-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #4a7c59;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #5ba056;
}

/* ===== ARTICLE PAGE STYLES ===== */
.article-page {
    padding: 120px 0 80px;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-breadcrumb {
    color: #666;
    margin-bottom: 1rem;
}

.article-breadcrumb a {
    color: #4a7c59;
    text-decoration: none;
}

.article-meta {
    justify-content: center;
    margin-bottom: 2rem;
}

.article-reading-time {
    color: #999;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.article-lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    color: #333;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    text-align: left;
}

.article-content h3 {
    color: #4a7c59;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.article-content h4 {
    color: #333;
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #444;
}

.article-highlight {
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #4a7c59;
    margin: 2rem 0;
}

.article-highlight h3 {
    margin-top: 0;
}

.article-tip {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-tip h3 {
    margin-top: 0;
    color: #2d5a2d;
}

.article-conclusion {
    background: #4a7c59;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-articles {
    background: #f8f9fa;
    padding: 80px 0;
}

/* ===== THANK YOU PAGE ===== */
.thank-you {
    padding: 120px 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you h1 {
    font-size: 3rem;
    color: #4a7c59;
    margin-bottom: 1rem;
}

.thank-you-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.thank-you-info {
    color: #666;
    margin-bottom: 2rem;
}

.thank-you-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
    padding: 120px 0 80px;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content h2 {
    color: #333;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    text-align: left;
}

.legal-content h3 {
    color: #4a7c59;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #444;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.3rem;
    color: #444;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.contact-section {
    background: #4a7c59;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.contact-section h2 {
    color: white;
    margin-top: 0;
}

.highlight-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* ===== SPECIALIZED ARTICLE STYLES ===== */
.temperature-range,
.yeast-temp-range,
.fermentation-profile,
.quality-checklist,
.measurement-category,
.quality-issue,
.contamination-type,
.cleaning-protocol,
.critical-control-points,
.tasting-protocol,
.immediate-action,
.correction-methods,
.monitoring-system,
.practical-tip,
.error-solution {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #4a7c59;
}

.hop-timing-table,
.cookie-duration-table,
.cookie-category {
    margin: 1.5rem 0;
}

.cookie-duration-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.cookie-duration-table th,
.cookie-duration-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cookie-duration-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.cookie-settings-trigger {
    text-align: center;
    margin: 2rem 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .article-navigation {
        flex-direction: column;
    }

    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }

    .thank-you h1 {
        font-size: 2rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

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

    .nav-container {
        padding: 1rem 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .service-card,
    .article-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

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

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

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus {
    outline: 2px solid #4a7c59;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .cookie-banner,
    .cookie-modal,
    .footer {
        display: none;
    }

    .article-page {
        padding-top: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .article-content {
        max-width: none;
    }
}
