/* ===================================
   Roots House of Kava - Stylesheet
   Fresh, airy, emerald & cream palette
   =================================== */

/* --- CSS Variables --- */
:root {
    --emerald-deep: #0D5C4B;
    --emerald-main: #1B7A5F;
    --emerald-light: #2A9D7F;
    --emerald-pale: #E8F5EF;
    --cream: #FDF8F0;
    --cream-dark: #F5EDE0;
    --cream-medium: #FAF6EE;
    --text-dark: #1A2E28;
    --text-medium: #3D5A4C;
    --text-light: #6B8E7D;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(13, 92, 75, 0.08);
    --shadow-md: 0 4px 20px rgba(13, 92, 75, 0.12);
    --shadow-lg: 0 8px 40px rgba(13, 92, 75, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--emerald-main);
    margin-bottom: 16px;
    background: var(--emerald-pale);
    padding: 8px 20px;
    border-radius: 50px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--emerald-deep);
}

.logo-icon {
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--text-medium);
}

.nav-links a:hover {
    color: var(--white);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--emerald-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-light);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--emerald-main);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--emerald-deep);
    transform: translateY(-2px);
}

.btn-nav::after {
    display: none;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .mobile-toggle .bar {
    background: var(--emerald-deep);
}

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

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0D5C4B 0%, #1B7A5F 30%, #2A9D7F 60%, #45B893 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(42, 157, 127, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(253, 248, 240, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(13, 92, 75, 0.3) 0%, transparent 60%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--cream), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.05;
    letter-spacing: -1px;
}

.hero-title em {
    font-style: italic;
    color: rgba(253, 248, 240, 0.85);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Lato', sans-serif;
}

.btn-primary {
    background: var(--cream);
    color: var(--emerald-deep);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-main);
    border: 2px solid var(--emerald-main);
}

.btn-outline:hover {
    background: var(--emerald-main);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* --- About Section --- */
.about {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--emerald-pale);
    border-radius: var(--radius-md);
    z-index: -1;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--emerald-deep);
}

.about-content p {
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--emerald-main);
    flex-shrink: 0;
}

/* --- Products Section --- */
.products {
    background: var(--cream-medium);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 56px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 280px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 28px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--emerald-deep);
}

.product-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.products-cta {
    text-align: center;
    padding: 40px;
    background: var(--emerald-pale);
    border-radius: var(--radius-lg);
}

.products-cta p {
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* --- Experience Section --- */
.experience {
    background: var(--cream);
}

.experience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.experience-text .section-tag {
    margin-bottom: 16px;
}

.experience-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.experience-text p {
    color: var(--text-medium);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.experience-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--emerald-main);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Visit Section --- */
.visit {
    background: var(--cream-medium);
}

.visit-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.visit-info {
    padding: 64px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.visit-info .section-tag {
    align-self: flex-start;
}

.visit-info .section-title {
    text-align: left;
    margin-bottom: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--emerald-main);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--emerald-main);
}

.hours {
    background: var(--emerald-pale);
    padding: 24px;
    border-radius: var(--radius-md);
}

.hours strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--emerald-main);
    margin-bottom: 8px;
}

.hours p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.visit-map {
    min-height: 500px;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* --- Footer --- */
.footer {
    background: var(--emerald-deep);
    color: rgba(255, 255, 255, 0.8);
    padding: 64px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand .logo {
    color: var(--white);
    font-size: 1.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 300px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .experience-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image {
        height: 400px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .visit-wrapper {
        grid-template-columns: 1fr;
    }
    
    .visit-map {
        min-height: 350px;
    }
    
    .visit-map iframe {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: var(--text-dark) !important;
        font-size: 1.1rem;
    }
    
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        padding: 24px 16px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .visit-info {
        padding: 40px 28px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 56px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
    
    .experience-stats {
        grid-template-columns: 1fr;
    }
}
