/* ========================================
   Earthbar — Stylesheet
   ======================================== */

/* --- Custom Properties --- */
:root {
    --color-forest: #2D5A3D;
    --color-forest-dark: #1E3D29;
    --color-forest-light: #3A734E;
    --color-cream: #F5F0E8;
    --color-cream-light: #FAF7F2;
    --color-warm: #C8A882;
    --color-warm-light: #D4BFA0;
    --color-text: #2C2C2C;
    --color-text-light: #5A5A5A;
    --color-white: #FFFFFF;
    --color-border: #E5DFD5;

    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(45, 90, 61, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 90, 61, 0.1);
    --shadow-lg: 0 8px 40px rgba(45, 90, 61, 0.12);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-cream-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-forest);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 14px;
}

.skip-link:focus {
    top: 16px;
}

/* --- Section Labels & Titles --- */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-forest);
    background: rgba(45, 90, 61, 0.08);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-forest-dark);
    margin-bottom: 20px;
}

.section-title em {
    font-style: italic;
    color: var(--color-forest);
}

.section-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 560px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 100px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-forest);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-forest-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-forest);
    border: 2px solid var(--color-forest);
}

.btn-secondary:hover {
    background: var(--color-forest);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-call {
    margin-top: 24px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-forest-dark);
}

.nav-logo-icon {
    color: var(--color-forest);
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--color-forest);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-forest);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(45, 90, 61, 0.06);
}

.hamburger {
    position: relative;
    width: 20px;
    height: 14px;
    display: block;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-forest);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before { top: 0; }
.hamburger span { top: 6px; }
.hamburger::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 6px;
}

/* --- Hero --- */
.hero {
    padding-top: 72px;
    background: var(--color-cream);
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: 60px 0 80px;
}

.hero-content {
    padding-right: 16px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-forest);
    background: rgba(45, 90, 61, 0.08);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-forest);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5.5vw, 68px);
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-forest-dark);
    margin-bottom: 24px;
}

.hero-title-accent {
    display: block;
    font-style: italic;
    color: var(--color-forest);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-light);
}

.meta-item svg {
    color: var(--color-forest);
    flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
}

.hero-img-main {
    width: 85%;
    height: 80%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

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

.hero-img-float {
    position: absolute;
    bottom: 40px;
    right: 0;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    border: 4px solid var(--color-cream);
}

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

.hero-accent-circle {
    position: absolute;
    top: 20px;
    right: 30%;
    width: 120px;
    height: 120px;
    background: var(--color-warm-light);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.5;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* --- About --- */
.about {
    background: var(--color-cream-light);
    padding: 100px 0;
}

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

.about-visual {
    position: relative;
}

.about-img-stack {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-stat {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-forest);
    color: var(--color-white);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    opacity: 0.85;
}

.about-content .section-title {
    margin-top: 8px;
}

.about-content > p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.about-content > p:first-of-type {
    margin-top: 16px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

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

.value-icon {
    width: 48px;
    height: 48px;
    background: rgba(45, 90, 61, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-forest);
    flex-shrink: 0;
}

.value-item h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-forest-dark);
    margin-bottom: 4px;
}

.value-item p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Products --- */
.products {
    background: var(--color-cream);
    padding: 100px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

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

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

.product-img {
    height: 260px;
    overflow: hidden;
}

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

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

.product-body {
    padding: 28px;
}

.product-body h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-forest-dark);
    margin-bottom: 10px;
}

.product-body p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* --- Visit --- */
.visit {
    background: var(--color-cream-light);
    padding: 100px 0;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.visit-info .section-title {
    margin-top: 8px;
}

.visit-info > p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 36px;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(45, 90, 61, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-forest);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-forest);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
}

.contact-item a {
    color: var(--color-forest);
    font-weight: 600;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--color-forest-dark);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
.footer {
    background: var(--color-forest-dark);
    color: var(--color-cream);
    padding: 56px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-cream);
    margin-bottom: 12px;
}

.footer-logo svg {
    color: var(--color-warm-light);
}

.footer-brand p {
    font-size: 15px;
    color: rgba(245, 240, 232, 0.7);
    max-width: 240px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-links a {
    font-size: 15px;
    color: rgba(245, 240, 232, 0.7);
    transition: var(--transition);
}

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

.footer-contact {
    text-align: right;
}

.footer-contact p {
    font-size: 15px;
    color: rgba(245, 240, 232, 0.7);
    line-height: 1.7;
}

.footer-contact a {
    color: var(--color-warm-light);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--color-cream);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 240, 232, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(245, 240, 232, 0.4);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 32px;
    }

    .hero-visual {
        height: 480px;
    }

    .about-grid,
    .visit-grid {
        gap: 40px;
    }
}

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

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(245, 240, 232, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 17px;
    }

    /* Hero */
    .hero {
        padding-top: 72px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 40px 0 60px;
        gap: 40px;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-meta {
        align-items: center;
    }

    .hero-visual {
        height: 400px;
        order: -1;
    }

    .hero-img-main {
        width: 100%;
        height: 100%;
    }

    .hero-img-float {
        width: 60%;
        bottom: 20px;
        right: -10px;
    }

    .hero-accent-circle {
        width: 80px;
        height: 80px;
        top: 10px;
        right: 10px;
    }

    .hero-wave svg {
        height: 50px;
    }

    /* About */
    .about {
        padding: 64px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stat {
        bottom: -16px;
        right: 16px;
    }

    /* Products */
    .products {
        padding: 64px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Visit */
    .visit {
        padding: 64px 0;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        gap: 24px;
    }

    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

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

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}
