/* 
 * Main Stylesheet
 * Tea Website
 * 
 * Colors:
 * - Primary: #FFA73B (Mandarin)
 * - Secondary: #3B1C53 (Deep Purple-Blueberry)
 * - Accent: #B4E197 (Pastel Lime)
 * - Background: #F5F1FA (Light Lavender)
 * - Text: #2B2B2B (Graphite)
 */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #FFA73B;
    --color-secondary: #3B1C53;
    --color-accent: #B4E197;
    --color-background: #F5F1FA;
    --color-text: #2B2B2B;
    --shadow-soft: 5px 5px 15px rgba(0, 0, 0, 0.1), -5px -5px 15px rgba(255, 255, 255, 0.7);
    --shadow-inset: inset 3px 3px 7px rgba(0, 0, 0, 0.1), inset -3px -3px 7px rgba(255, 255, 255, 0.7);
    --border-radius: 12px;
    --transition-standard: all 0.3s ease;
}

html {
    font-size: 62.5%; /* 10px base for easier rem calculation */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: var(--transition-standard);
}

a:hover, a:focus {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-secondary);
    font-weight: 700;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.2rem;
}

h3 {
    font-size: 2.4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-standard);
    box-shadow: var(--shadow-soft);
    border: none;
    outline: none;
}

.btn:active {
    box-shadow: var(--shadow-inset);
    transform: translateY(2px);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #FF9011;
    color: white;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #2A1540;
    color: white;
}

/* ---------- LAYOUT & SECTIONS ---------- */
section {
    padding: 8rem 0;
}

/* ---------- HEADER ---------- */
.site-header {
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 241, 250, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 3rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 1.8rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-standard);
}

.main-nav a:hover::after, .main-nav a:focus::after {
    width: 100%;
}

/* ---------- HERO SECTION ---------- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url('./img/OiEdBL.jpg') no-repeat center center/cover;
    position: relative;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(59, 28, 83, 0.7), rgba(59, 28, 83, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    animation: fadeSlideUp 1s ease-out;
}

.hero-title {
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 3rem;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- BENEFITS SECTION ---------- */
.benefits {
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.benefit-card {
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: var(--color-background);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-standard);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

/* ---------- PURCHASE BENEFITS SECTION ---------- */
.purchase-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.purchase-benefit-card {
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-standard);
}

.purchase-benefit-card:hover {
    transform: translateY(-10px);
}

.purchase-benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

/* ---------- PRODUCTS SECTION ---------- */
.products {
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.product-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--color-background);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-standard);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3, .product-card p {
    padding: 0 2rem;
}

.product-card h3 {
    margin-top: 2rem;
}

.price {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1.5rem 0;
}

.product-card .btn {
    display: block;
    margin: 2rem;
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/YO4uZJ.jpg') no-repeat center center/cover;
    opacity: 0.1;
    z-index: -1;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition-standard);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-rating {
    color: var(--color-primary);
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    font-weight: 600;
    text-align: right;
}

/* ---------- FAQ SECTION ---------- */
.faq {
    background-color: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--color-background);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
}

.faq-item:hover {
    transform: translateX(10px);
}

.faq-question {
    margin-bottom: 1rem;
    color: var(--color-secondary);
    position: relative;
    padding-left: 3rem;
}

.faq-question::before {
    content: 'Q:';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.faq-answer {
    position: relative;
    padding-left: 3rem;
}

.faq-answer::before {
    content: 'A:';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* ---------- HOW IT WORKS SECTION ---------- */
.how-it-works {
    position: relative;
    overflow: hidden;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.step {
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-soft);
}

.step::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -15px;
    height: 2px;
    width: 30px;
    background-color: var(--color-primary);
    z-index: -1;
}

.step:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .step::after {
        display: none;
    }
}

/* ---------- ORDER FORM SECTION ---------- */
.order-form {
    background-color: white;
}

.order-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem;
    border-radius: var(--border-radius);
    background-color: var(--color-background);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition-standard);
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    pointer-events: none;
    transition: var(--transition-standard);
}

.order-card:hover::before {
    border-color: var(--color-primary);
    animation: flyingBorder 2s linear infinite;
}

@keyframes flyingBorder {
    0% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    25% {
        clip-path: polygon(10% 0%, 100% 0%, 100% 90%, 0% 100%);
    }
    50% {
        clip-path: polygon(0% 10%, 100% 0%, 90% 100%, 0% 100%);
    }
    75% {
        clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 10% 100%);
    }
    100% {
        clip-path: polygon(0% 0%, 100% 10%, 100% 100%, 0% 90%);
    }
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border-radius: var(--border-radius);
    border: none;
    background-color: white;
    box-shadow: var(--shadow-inset);
    transition: var(--transition-standard);
}

.form-group input:focus,
.form-group select:focus {
    outline: 2px solid var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 167, 59, 0.3);
}

.checkbox {
    display: flex;
    align-items: flex-start;
}

.checkbox input {
    width: auto;
    margin-right: 1rem;
    margin-top: 0.4rem;
}

.checkbox label {
    font-weight: 400;
    margin-bottom: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
    padding: 6rem 0 2rem;
    background-color: var(--color-secondary);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.company-desc {
    opacity: 0.8;
}

.footer-column h3 {
    color: white;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-primary);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a,
.site-footer a {
    color: white;
    opacity: 0.8;
    transition: var(--transition-standard);
}

.footer-links a:hover,
.site-footer a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1.4rem;
    opacity: 0.6;
}

/* ---------- COOKIE POPUP ---------- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    z-index: 1000;
    animation: slideIn 0.5s ease-out forwards;
}

.cookie-popup p {
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

@keyframes slideIn {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ---------- LEGAL PAGES ---------- */
.legal-page {
    padding: 8rem 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.legal-content h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.legal-content p, 
.legal-content ul {
    margin-bottom: 2rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 1rem;
}

/* ---------- THANKS PAGE ---------- */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
}

.thanks-content {
    max-width: 500px;
    width: 90%;
    padding: 4rem 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    animation: pop 0.5s ease-out;
    margin: 0 auto;
}

.thanks-content h1 {
    margin-bottom: 2rem;
    color: var(--color-secondary);
    font-size: 2.8rem;
}

.thanks-content p {
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.order-reference {
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--color-secondary);
    text-align: center;
    padding: 1.5rem;
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    margin: 0 auto 3rem;
    max-width: 100%;
    box-shadow: var(--shadow-inset);
}

.thanks-content .btn {
    min-width: 200px;
}

@keyframes pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 992px) {
    html {
        font-size: 56.25%; /* 9px base */
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%; /* 8px base */
    }
    
    section {
        padding: 6rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .main-nav ul {
        gap: 2rem;
    }
    
    .hero-content {
        padding: 3rem 2rem;
    }
    
    .benefits-grid,
    .purchase-benefits-grid,
    .products-grid,
    .testimonials-slider,
    .steps {
        grid-template-columns: 1fr;
    }
    
    .order-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
} 