@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #007acd;
    --navy-blue: #021B32; /* Deep Navy Blue */
    --light-blue: #e6f2fb;
    --text-dark: #222222;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    
    --radius-huge: 40px;
    --radius-large: 24px;
    --radius-pill: 100px;
    
    --gap-large: 30px;
    --gap-medium: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f6f9fc;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Buttons & Pills */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #005a9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 122, 205, 0.4);
}

.btn-white {
    background-color: var(--text-light);
    color: var(--navy-blue);
}

.btn-white:hover {
    background-color: #f0f0f0;
}

.circle-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.circle-btn.white {
    background-color: var(--text-light);
    color: var(--navy-blue);
}

.circle-btn:hover {
    transform: scale(1.1);
}

.pill-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(2, 27, 50, 0.05);
    border: 1px solid rgba(2, 27, 50, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
    color: var(--text-light);
}

.navbar.scrolled {
    background: rgba(2, 27, 50, 0.9); /* Deep Navy Glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 50px;
    box-shadow: var(--glass-shadow);
}

.navbar.dark-text {
    color: var(--navy-blue);
}

.navbar.dark-text.scrolled {
    color: var(--text-light);
}

.navbar .logo {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo img,
.navbar .logo-scrolled img {
    height: 40px;
}

.navbar .logo-scrolled {
    display: none;
}

.navbar.scrolled .logo {
    display: none;
}

.navbar.scrolled .logo-scrolled {
    display: flex;
}

.navbar .nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.navbar .nav-links a {
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

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

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

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(2, 27, 50, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy-blue);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

/* Layout Padding */
.section {
    padding: 100px 50px;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--navy-blue);
}

/* Split Hero (Beranda) */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-large);
    padding: 20px;
    padding-top: 100px;
    min-height: 95vh;
}

.hero-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%,  var(--navy-blue) 70%);
    border-radius: var(--radius-huge);
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image {
    background-image: url('/assets/scenery.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax bit inside box */
    border-radius: var(--radius-huge);
}

.hero-box h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-box p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 80%;
}

.hero-box-mobile-image {
    display: none;
    width: 100%;
    height: 40vh;
    min-height: 220px;
    max-height: 360px;
    object-fit: cover;
    border-radius: 22px;
    margin: 4px 0 8px;
}

.hero-pill {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: auto;
}

.hero-play-btn {
    width: 48px;
    height: 48px;
}

.hero-stats {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 60px;
}

.hero-avatars {
    display: flex;
}

.hero-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--navy-blue);
    margin-left: -10px;
}

.hero-stats-text {
    font-size: 0.85rem;
    opacity: 0.8;
}

.section-copy-center {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-large);
}

.bento-card {
    background: white;
    border-radius: var(--radius-large);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
}

.card-number {
    width: 40px;
    height: 40px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.bento-card p {
    font-size: 0.95rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

.card-action {
    align-self: flex-end;
}

.page-hero {
    padding-top: 150px;
    text-align: center;
}

.page-hero-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.page-lead {
    font-size: 1.1rem;
    color: #555;
    max-width: 760px;
    margin: 0 auto 50px;
}

.navy-panel {
    background: var(--navy-blue);
    padding: 50px;
    border-radius: var(--radius-large);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navy-panel-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.navy-panel-copy {
    opacity: 0.82;
    margin-bottom: 30px;
}

.white-rounded-section {
    background: white;
    border-radius: var(--radius-huge);
    padding-bottom: 150px;
}

.cert-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-number-blue {
    background: var(--primary-blue);
    color: white;
}

.product-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 50px;
}

.tall-action {
    background: white;
    color: var(--navy-blue);
    width: 35px;
    height: 35px;
}

.nutrition-section {
    background: var(--navy-blue);
    color: white;
    border-radius: var(--radius-huge);
    padding: 80px 50px;
}

.nutrition-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.nutrition-copy {
    color: #bbb;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.pill-tag-dark {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nutrition-card {
    background: white;
    color: var(--navy-blue);
    border-radius: var(--radius-large);
    overflow: hidden;
    padding: 40px;
}

.nutrition-card-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.nutrition-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
}

.nutrition-row.divided {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.retail-hero {
    padding-top: 150px;
    background: white;
    border-radius: 0 0 var(--radius-huge) var(--radius-huge);
}

.retail-search-bar {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: #f6f9fc;
    padding: 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.retail-search-input {
    flex-grow: 1;
    background: transparent;
    box-shadow: none !important;
    border: none;
    padding: 0 15px;
}

.retail-search-input:focus {
    outline: none;
    box-shadow: none !important;
}

.retail-search-icon {
    min-width: 48px;
    min-height: 48px;
    background: var(--navy-blue);
}

.retail-grid-offset {
    margin-top: 80px;
}

.retail-card-title {
    color: var(--navy-blue);
    margin-bottom: 5px;
}

.retail-card-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-fill {
    width: 100%;
    padding: 8px 20px;
    font-size: 0.85rem;
}

.retail-loadmore {
    text-align: center;
    margin-top: 60px;
}

.btn-outline-soft {
    border: 2px solid #eee;
    color: var(--navy-blue);
}

.footer-title {
    margin-bottom: 30px;
    font-size: 2rem;
}

.footer-copy {
    color: #ccc;
}

/* Enter animation */
.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.99);
    transition: opacity 0.55s ease, transform 0.55s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.14s;
}

.reveal-delay-3 {
    transition-delay: 0.2s;
}

.bento-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    padding: 0;
    overflow: hidden;
    background: var(--navy-blue);
    color: white;
}

.bento-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-featured-title {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.bento-featured-body {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.bento-featured-cta {
    align-self: flex-start;
}

.bento-featured-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.bento-featured-meta span {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: #b8cbe0;
    text-transform: uppercase;
}

/* Tall Vertical Cards (Products) */
.tall-card {
    position: relative;
    min-height: 500px;
    border-radius: var(--radius-large);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

/* Add overlay to tall card */
.tall-card::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(2, 27, 50, 0.8) 100%);
    z-index: 1;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: calc(var(--radius-large) - 5px);
    padding: 25px;
    width: 100%;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.glass-panel h4 {
    color: var(--navy-blue);
    margin-bottom: 5px;
    font-size: 1.3rem;
}
.glass-panel p {
    color: #555;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Pill Shapes Hero elements (About page style) */
.pill-tags-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
}
.pill-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 25px 8px 8px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-weight: 600;
    color: var(--navy-blue);
}
.pill-tag img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Asymmetric Grids */
.asymmetric-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--gap-large);
    align-items: center;
}

.img-rounded {
    width: 100%;
    border-radius: var(--radius-large);
    object-fit: cover;
    object-position: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Retail Grid */
.retail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-medium);
}

.retail-card {
    background: white;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}
.retail-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.retail-card .info {
    padding: 25px;
}

/* Footer */
footer {
    background-color: var(--navy-blue);
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: var(--radius-large) var(--radius-large) 0 0;
    margin-top: 40px;
}

/* Responsive specific adjustments */
@media (max-width: 900px) {
    :root {
        --radius-huge: 24px;
        --radius-large: 16px;
        --gap-large: 20px;
    }
    
    .hero-split {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 14px;
        padding-top: 92px;
        min-height: auto;
    }
    
    .hero-image {
        min-height: 460px;
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
        border-bottom-left-radius: 60px;
        border-bottom-right-radius: 28px;
        background-attachment: scroll;
    }
    .hero-box {
        padding: 40px 28px;
        border-radius: 28px;
    }

    .hero-box h1 {
        font-size: 2.2rem;
    }

    .hero-box p {
        max-width: 100%;
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .asymmetric-grid {
        grid-template-columns: 1fr;
    }
    .retail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pill-tags-container {
        flex-wrap: wrap;
    }
    .navbar {
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 0 0 16px 16px;
        color: var(--navy-blue);
    }

    .navbar.scrolled {
        padding: 12px 16px;
    }

    .navbar .logo img,
    .navbar .logo-scrolled img {
        height: 32px !important;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .navbar .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 12px;
        right: 12px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(2, 27, 50, 0.12);
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 20px 40px rgba(2, 27, 50, 0.12);
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
    }

    .navbar.nav-open .nav-links {
        display: flex;
    }

    .navbar .nav-links a {
        display: block;
        padding: 10px 12px;
        border-radius: 12px;
        color: var(--text-dark);
    }

    .navbar .nav-links a.active {
        background: rgba(0, 122, 205, 0.12);
        color: var(--navy-blue);
    }
    
    .section {
        padding: 60px 20px;
    }

    .page-hero,
    .retail-hero {
        padding-top: 110px;
    }

    .product-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .nutrition-section {
        padding: 50px 20px;
    }

    .nutrition-title {
        font-size: 2rem;
    }

    .nutrition-card {
        padding: 24px;
    }

    .navy-panel {
        padding: 30px 24px;
    }
}

@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
        padding-top: 84px;
        min-height: 100vh;
    }

    .hero-box {
        order: 1;
        min-height: calc(100vh - 96px);
        border-radius: 24px;
        padding: 18px;
        justify-content: flex-start;
        background-image: url('/assets/scenery.png');
        background-size: cover;
        background-position: center;
        background-blend-mode: overlay;
        background-color: rgba(2, 27, 50, 0.6);
    }

    .hero-image {
        display: none;
    }

    .hero-box-mobile-image {
        display: block;
    }

    .hero-box h1 {
        font-size: 1.9rem;
        margin-bottom: 12px;
    }

    .hero-box p {
        font-size: 0.96rem;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-box > div[style*="margin-top: auto"] {
        padding-top: 20px !important;
    }

    .hero-stats {
        padding-top: 20px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-featured {
        grid-template-columns: 1fr;
        gap: 0;
        border-radius: 20px;
        background: #ffffff;
        color: var(--navy-blue);
        border: 1px solid rgba(2, 27, 50, 0.09);
        box-shadow: 0 10px 28px rgba(2, 27, 50, 0.08);
    }

    .bento-featured-image {
        height: 180px;
    }

    .bento-featured-content {
        padding: 16px;
    }

    .bento-featured-content h3 {
        color: var(--navy-blue) !important;
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }

    .bento-featured-title {
        color: var(--navy-blue);
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .bento-featured-content p {
        color: #5f6d7a !important;
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
    }

    .bento-featured-body {
        color: #5f6d7a;
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .bento-featured-meta {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-bottom: 10px;
    }

    .bento-featured-meta span {
        color: #7c8ea1;
        font-size: 0.72rem;
    }

    .bento-featured-content .btn {
        width: 100%;
        justify-content: center;
        background: var(--navy-blue);
        color: white;
    }

    .bento-featured-content .btn:hover {
        background: #032846;
    }

    .retail-grid {
        grid-template-columns: 1fr;
    }

    .product-grid-3 {
        grid-template-columns: 1fr;
    }

    .page-lead {
        margin-bottom: 30px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.15rem;
    }

    .navy-panel-title {
        font-size: 1.7rem;
    }

    .retail-hero {
        border-radius: 0 0 24px 24px;
    }

    .retail-search-bar {
        padding: 8px;
    }
    
    .btn, .circle-btn {
        /* larger touch targets */
        min-height: 44px; 
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-delay-1,
    .reveal-delay-2,
    .reveal-delay-3 {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
