/* CSS Variables & Reset */
:root {
    --primary-color: #0EA5E9;
    /* Vivid Sky Blue */
    --primary-dark: #0284C7;
    --secondary-color: #10B981;
    /* Emerald Green */
    --accent-color: #F43F5E;
    /* Rose */
    --bg-color: #F8FAFC;
    --text-main: #334155;
    --text-dark: #0F172A;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --nav-height: 70px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.center-text {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.section {
    padding: 80px 0;
}

.alt-bg {
    background-color: #f1f5f9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-warning,
.btn-yellow {
    background-color: #FACC15;
    color: #000;
    border: none;
    box-shadow: 0 4px 0 #EAB308;
    /* Hard shadow for call to action */
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-warning:hover,
.btn-yellow:hover {
    background-color: #FDE047;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #EAB308;
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Compliance Top Bar */
.top-bar {
    background: #0F172A;
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 5px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--nav-height);
    position: sticky;
    /* Changed to sticky for top bar compatibility */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.main-nav a {
    margin-left: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    /* Adjusted padding since header is sticky */
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: var(--text-main);
    max-width: 600px;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-features span {
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    border-radius: 8px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-height: 500px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.small-text {
    font-size: 0.85rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* Brands Section */
.brands-section {
    padding: 20px 0;
    background: var(--white);
    border-bottom: 1px solid #f1f5f9;
}

.brands-section img {
    max-height: 60px;
    object-fit: contain;
    margin: 0 auto;
    opacity: 0.8;
}

/* How It Works */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.align-center {
    align-items: center;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 10px;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.feature-card {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* Ingredients */
.ingredients-section {
    background-image: radial-gradient(#e0f2fe 1px, transparent 1px);
    background-size: 20px 20px;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.ingredient-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
}

.ingredients-detail-img {
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stars {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-main);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.user-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.user-info span {
    font-size: 0.8rem;
    color: #64748b;
}

.result-disclaimer {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 20px;
    font-style: italic;
}

/* Pricing */
.pricing-section {
    background: linear-gradient(180deg, var(--white) 0%, #F8FAFC 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border-radius: 4px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 2px solid #004D40;
    /* Dark Green Border */
    position: relative;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.best-value {
    background: #fff;
    border: 3px solid #004D40;
    transform: scale(1.05);
    z-index: 2;
}

.best-value-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: #F43F5E;
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(15deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    z-index: 10;
}

.pkg-title {
    color: #004D40;
    /* Dark Green */
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.pkg-supply {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.bottle-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
}

.bottle-img img {
    height: 100%;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.2));
}

/* Bottle Groups (Composite Images) */
.bottle-group {
    position: relative;
    width: 100%;
}

.bottle-group img {
    position: absolute;
    width: auto;
    transition: transform 0.3s ease;
}

/* 3 Bottle Group */
.group-3 img:nth-child(1) {
    transform: translateX(-40px) scale(0.9);
    z-index: 1;
}

.group-3 img:nth-child(2) {
    transform: translateX(40px) scale(0.9);
    z-index: 1;
}

.group-3 img:nth-child(3) {
    transform: translateX(0) scale(1.05);
    z-index: 2;
}

/* 6 Bottle Group */
.group-6 img {
    height: 75% !important;
}

/* Make them smaller to fit */
.group-6 img:nth-child(1) {
    transform: translateX(-70px) translateY(-10px) scale(0.85);
    z-index: 1;
}

.group-6 img:nth-child(2) {
    transform: translateX(70px) translateY(-10px) scale(0.85);
    z-index: 1;
}

.group-6 img:nth-child(3) {
    transform: translateX(-35px) translateY(-5px) scale(0.9);
    z-index: 2;
}

.group-6 img:nth-child(4) {
    transform: translateX(35px) translateY(-5px) scale(0.9);
    z-index: 2;
}

.group-6 img:nth-child(5) {
    transform: translateX(-15px) translateY(10px) scale(1);
    z-index: 3;
}

.group-6 img:nth-child(6) {
    transform: translateX(15px) translateY(10px) scale(1);
    z-index: 3;
}

.bottle-group:hover img:nth-child(odd) {
    transform: translateX(-20px) scale(1.1);
}

.bottle-group:hover img:nth-child(even) {
    transform: translateX(20px) scale(1.1);
}


.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 10px 0;
    color: #004D40;
}

.price span {
    font-size: 1.2rem;
    color: #004D40;
    font-weight: 600;
}

.total-saved {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 15px;
    color: var(--text-dark);
}

.strike {
    text-decoration: line-through;
    color: #ef4444;
    margin-right: 5px;
}

.free-shipping {
    color: #004D40;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 5px;
    text-transform: uppercase;
}

.payment-methods {
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.payment-methods img {
    max-height: 25px;
    opacity: 0.7;
}

/* Footer Compliance */
.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 60px 0;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #cbd5e1;
    margin: 0 10px;
    font-size: 0.9rem;
    text-decoration: underline;
}

.disclaimer-text {
    margin-top: 30px;
    text-align: left;
    color: #94a3b8;
    line-height: 1.5;
    border-top: 1px solid #334155;
    padding-top: 20px;
}

/* Animations & Effects */

/* Shine effect for buttons */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Float animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Scroll Animations State Classes - will be triggered by JS */
.fade-up,
.fade-in,
.fade-right,
.fade-left,
.zoom-in {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-up {
    transform: translateY(30px);
}

.fade-right {
    transform: translateX(-30px);
}

.fade-left {
    transform: translateX(30px);
}

.zoom-in {
    transform: scale(0.9);
}

.visible {
    opacity: 1;
    transform: none !important;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-card.best-value {
        transform: none;
        margin: 10px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-features {
        justify-content: center;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

/* Mobile Full Optimization - 768px and below */
@media (max-width: 768px) {

    /* Reset container for mobile edge-to-edge */
    .container {
        padding: 0 12px;
        max-width: 100%;
    }

    /* Navigation */
    .main-nav {
        display: none;
    }

    .sm-hide {
        display: none;
    }

    .site-header {
        height: 60px;
    }

    .logo {
        font-size: 1.3rem;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 40px 0;
    }

    .hero-container {
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-features {
        gap: 10px;
        margin-bottom: 20px;
    }

    .hero-features span {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .hero-image img {
        max-height: 280px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }

    .small-text {
        font-size: 0.8rem;
    }

    /* Sections */
    .section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* Feature Cards */
    .feature-card {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    /* Ingredients Grid - Single Column for all mobile */
    .ingredients-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 25px;
    }

    .ingredient-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .ingredient-card .icon-circle {
        margin: 0;
        flex-shrink: 0;
    }

    .ingredient-card {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .ingredient-card>div {
        flex: 1;
    }

    .icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .ingredient-card h3 {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .ingredient-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .ingredients-detail-img {
        max-width: 100%;
        border-radius: 12px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }

    .testimonial-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .testimonial-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .user-info img {
        width: 42px;
        height: 42px;
    }

    .user-info h4 {
        font-size: 0.9rem;
    }

    .stars {
        font-size: 0.85rem;
    }

    /* Pricing Section Mobile - Full Width Cards */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .pricing-card {
        padding: 25px 16px;
        border-radius: 16px;
        margin: 0;
        border-width: 2px;
    }

    .pricing-card.best-value {
        border-width: 3px;
        order: -1;
        /* Move best value to top on mobile */
    }

    .best-value-badge {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
        top: 15px;
        right: 15px;
    }

    .pkg-title {
        font-size: 1.2rem;
    }

    .pkg-supply {
        font-size: 1rem;
    }

    .bottle-img {
        height: 160px;
        margin: 10px auto;
    }

    .bottle-img img {
        max-height: 150px;
    }

    .price {
        font-size: 2.5rem;
        margin: 8px 0;
    }

    .price span {
        font-size: 1rem;
    }

    .btn-yellow {
        font-size: 0.95rem;
        padding: 12px 20px;
        width: 100%;
    }

    .total-saved {
        font-size: 0.9rem;
        margin-top: 12px;
    }

    .free-shipping {
        font-size: 0.8rem;
    }

    .payment-methods {
        margin-top: 15px;
        padding-top: 12px;
    }

    .payment-methods img {
        max-height: 20px;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 40px 0;
    }

    .footer-links {
        margin-bottom: 15px;
    }

    .footer-links a {
        margin: 0 6px;
        font-size: 0.8rem;
    }

    .disclaimer-text {
        font-size: 0.7rem;
        text-align: center;
        padding-top: 15px;
    }

    .guarantee-block p {
        font-size: 0.9rem;
    }

    /* Brands Section */
    .brands-section {
        padding: 15px 0;
    }

    .brands-section img {
        max-height: 45px;
    }

    /* Top Bar */
    .top-bar {
        font-size: 0.65rem;
        padding: 4px 0;
    }

    /* Grid Two Column Reset */
    .grid-2-col {
        gap: 25px;
        margin-top: 25px;
    }

    /* Image Block */
    .image-block img {
        max-width: 85%;
        margin: 0 auto;
    }
}

/* Extra Small Devices - 480px and below */
@media (max-width: 480px) {

    /* Full edge-to-edge layout */
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        padding: 0 8px;
        width: 100%;
        max-width: 100%;
    }

    .hero-section {
        padding: 30px 0;
    }

    .hero-content h1 {
        font-size: 1.4rem;
        padding: 0 5px;
    }

    .hero-content p {
        font-size: 0.88rem;
        padding: 0 5px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .hero-features span {
        width: auto;
        text-align: center;
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    .hero-image img {
        max-height: 220px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .section {
        padding: 30px 0;
    }

    .section-header h2 {
        font-size: 1.3rem;
        padding: 0 5px;
    }

    .section-header p {
        font-size: 0.85rem;
        padding: 0 5px;
    }

    /* Single column ingredients for better readability */
    .ingredients-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 5px;
    }

    .ingredient-card {
        padding: 16px 12px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .ingredient-card .icon-circle {
        margin: 0;
        flex-shrink: 0;
    }

    .ingredient-card h3 {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .ingredient-card p {
        font-size: 0.8rem;
    }

    .icon-circle {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    /* Pricing optimizations */
    .pricing-card {
        padding: 18px 10px;
        border-radius: 12px;
    }

    .price {
        font-size: 2rem;
    }

    .price span {
        font-size: 0.9rem;
    }

    .btn-yellow {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .pkg-title {
        font-size: 1.1rem;
    }

    .pkg-supply {
        font-size: 0.9rem;
    }

    .bottle-img {
        height: 140px;
    }

    .bottle-img img {
        max-height: 130px;
    }

    .best-value-badge {
        width: 55px;
        height: 55px;
        font-size: 0.65rem;
        top: 10px;
        right: 10px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 16px 12px;
    }

    .testimonial-card p {
        font-size: 0.82rem;
    }

    /* Footer */
    .footer-links a {
        font-size: 0.72rem;
        margin: 0 3px;
    }

    .disclaimer-text {
        font-size: 0.65rem;
    }

    /* Top bar */
    .top-bar {
        font-size: 0.6rem;
        padding: 3px 0;
    }

    /* Remove any accidental padding creating borders */
    .section,
    .alt-bg,
    .hero-section,
    .pricing-section {
        margin-left: 0;
        margin-right: 0;
        border-left: none;
        border-right: none;
    }
}