/* ============================================================
   ISLAND FIZZ CIDER — style.css  (shared base stylesheet)
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --teal: #0a6b74;
    --teal-mid: #0e8a96;
    --orange: #f59a0a;
    --navy: #0d1f3c;
    --cream: #fdf8f0;
    --gold: #D4A820;

    --font-display: 'Bebas Neue', sans-serif;
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;

    --nav-h: 68px;
    --transition: 270ms ease;

    /* Light theme (default) */
    --nav-bg: rgba(255, 255, 255, 0.96);
    --nav-text: #1a1a2e;
    --nav-shadow: rgba(0, 0, 0, 0.08);
    --mobile-nav-bg: #ffffff;
    --mobile-nav-text: #1a1a2e;
    --mobile-divider: rgba(18, 18, 18, 0.10);
    --hamburger-color: #1a1a2e;
}

/* Dark theme overrides */
html[data-theme="dark"] {
    --nav-bg: rgba(10, 20, 35, 0.97);
    --nav-text: rgba(255, 255, 255, 0.88);
    --nav-shadow: rgba(0, 0, 0, 0.45);
    --mobile-nav-bg: #0c1a28;
    --mobile-nav-text: #ffffff;
    --mobile-divider: rgba(255, 255, 255, 0.10);
    --hamburger-color: #ffffff;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

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

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

/* ===== ABOUT LEAF DECOR ===== */
.about-section {
    position: relative;
}

.about-leaf-deco {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(250px, 21vw, 400px);
    height: auto;
    padding: 5px;

    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
}



.about-leaf-deco-right {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(250px, 21vw, 400px);


    height: auto;

    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
}

.about-fruit1-deco {
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(160px, 12vw, 240px);
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
}

@media (max-width: 560px) {
    .about-fruit1-deco {
        width: 120px;
        padding: 5px;
    }
}



@media (max-width: 560px) {
    .about-leaf-deco,
    .about-leaf-deco-right {
    width: 95px;
    padding: 5px;

    }
}


.about-inner {
    position: relative;
    z-index: 1;
}


ul {
    list-style: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    padding: 0 32px;
    background: var(--nav-bg);
    box-shadow: 0 2px 24px var(--nav-shadow);
    backdrop-filter: blur(14px);
    transition: background var(--transition), box-shadow var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--nav-text);
    position: relative;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--teal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Social icons */
.nav-social {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: var(--nav-text);
}

.nav-social a {
    transition: color var(--transition);
}

.nav-social a:hover {
    color: var(--teal);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--hamburger-color);
    transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE NAV MENU (≤640px) ===== */
@media (max-width: 640px) {
    .nav-social {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center; /* center align links in mobile */
        text-align: center;
        padding: 0 28px;
        gap: 0;

        /* mobile menu should be solid so text is readable */
        background: var(--mobile-nav-bg);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);

        /* hidden state with slide + fade */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition:
            max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.28s ease,
            transform 0.28s ease,
            background var(--transition);
    }


    .nav-links.open {
        max-height: 400px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--mobile-divider);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 15px 0;
        font-size: 15px;
        color: var(--mobile-nav-text) !important;
        letter-spacing: 0.1em;
    }


    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--teal) !important;
    }
}

/* ===== UTILITY ===== */
.link-arrow {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--teal);
    transition: opacity var(--transition);
}

.link-arrow:hover {
    opacity: 0.7;
}

/* ===== BACK TO TOP ===== */
.to-top-btn {
    position: fixed;
    right: 20px;
    bottom: 88px;
    z-index: 1700;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(13, 31, 60, 0.55);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

html[data-theme="light"] .to-top-btn {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 0, 0.10);
    color: var(--teal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.to-top-btn:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

/* ===== ANIMATIONS ===== */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}