/* 
 * Čajový dom Harmonia - Main Stylesheet
 * Color Palette:
 * - Main Background: Gradient from #d4ffeb to #e8ffe6
 * - Accents: #ffa870 (orange-peach), #ffe76a (warm yellow), #336644 (deep green)
 * - Text: #2e2e2e (dark gray), #1a1a1a (graphite for headings)
 */

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 10px base for easier rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #2e2e2e;
    background: linear-gradient(135deg, #d4ffeb 0%, #e8ffe6 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #336644;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffa870;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', sans-serif;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.8rem;
}

p {
    margin-bottom: 1.6rem;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #336644;
    color: white;
    padding: 1.2rem 2.4rem;
    border-radius: 0.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
    border: 3px solid #336644;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
    position: relative;
    cursor: pointer;
}

.btn:hover {
    background-color: #ffa870;
    color: white;
    border-color: #ffa870;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
}

.btn:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

/* Header */
.site-header {
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.9);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 1.8rem;
    padding: 0.5rem 1rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffa870;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.cookie-notice .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cookie-notice p {
    margin: 0;
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/qSCAi7.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    box-shadow: 8px 8px 0 rgba(51, 102, 68, 0.3);
    transform: rotate(-1deg);
}

.hero h1 {
    margin-bottom: 2rem;
    font-size: 5rem;
    color: #336644;
}

.hero-subtitle {
    font-size: 2.4rem;
    margin-bottom: 3rem;
    color: #336644;
}

/* Benefits Section */
.benefits {
    padding: 8rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.benefit-card {
    padding: 3rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 6px 6px 0 rgba(51, 102, 68, 0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #ffa870;
}

.benefit-icon {
    margin-bottom: 2rem;
    color: #ffa870;
    font-size: 4rem;
}

.benefit-title {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

/* Products Section */
.products {
    padding: 8rem 0;
    background-color: rgba(255, 255, 255, 0.5);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.product-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.product-description {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-price {
    font-size: 2.2rem;
    font-weight: bold;
    color: #336644;
    margin-bottom: 2rem;
}

/* Comparison Table */
.comparison {
    padding: 8rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4rem;
    background-color: white;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
}

.comparison-table th, 
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
    background-color: #336644;
    color: white;
    font-weight: bold;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.comparison-table tr:hover {
    background-color: #f0f0f0;
}

/* Testimonials */
.testimonials {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/EHal8S.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.testimonials-slider {
    margin-top: 4rem;
    display: flex;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

.testimonial-card {
    min-width: 300px;
    width: calc(33.333% - 2rem);
    margin-right: 2rem;
    padding: 3rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: scrollTestimonials 30s linear infinite;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 3 - 2rem * 3));
    }
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    font-weight: bold;
    color: #336644;
}

/* About Section */
.about {
    padding: 8rem 0;
    background-color: rgba(255, 255, 255, 0.5);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 8px 8px 0 rgba(51, 102, 68, 0.2);
}

/* Order Form */
.order-form-section {
    padding: 8rem 0;
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
}

.order-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 8px 8px 0 rgba(51, 102, 68, 0.2);
    position: relative;
    z-index: 1;
    clip-path: polygon(0% 0%, 100% 5%, 95% 100%, 5% 95%);
}

.order-form-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-color: rgba(255, 231, 106, 0.3);
    z-index: -1;
    border-radius: 1rem;
    clip-path: polygon(5% 0%, 100% 0%, 95% 95%, 0% 100%);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.4rem;
    font-size: 1.6rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #336644;
}

.form-select {
    appearance: none;
    background: url("data:image/svg+xml;utf8,<svg fill='%23336644' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") no-repeat;
    background-position: right 1rem center;
    background-color: white;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-top: 0.4rem;
    margin-right: 1rem;
}

.form-check-label {
    font-size: 1.4rem;
}

/* Footer */
.site-footer {
    background-color: #336644;
    color: white;
    padding: 6rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.footer-col a {
    color: #ffe76a;
}

.footer-col a:hover {
    color: #ffa870;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    html {
        font-size: 60%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        width: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3.6rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .testimonial-card {
        width: calc(100% - 2rem);
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 55%;
    }
    
    .container {
        width: 95%;
        padding: 0 1rem;
    }
    
    .btn {
        padding: 1rem 2rem;
    }
    
    .hero-content {
        padding: 3rem 2rem;
    }
    
    .benefit-card, 
    .product-card {
        padding: 2rem;
    }
    
    .order-form-container {
        padding: 3rem 2rem;
    }
}

/* Retina Display Support */
@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
    /* High-resolution specific styles if needed */
} 