/* ============================================
   CBD Oil Benefits - Landing Page Styles
   ============================================ */

:root {
    --color-orange: #e67e22;
    --color-orange-dark: #d35400;
    --color-green: #27ae60;
    --color-green-dark: #219a52;
    --color-green-hover: #2ecc71;
    --color-gray-dark: #2c3e50;
    --color-gray-mid: #7f8c8d;
    --color-gray-light: #95a5a6;
    --color-gray-bg: #f8f9fa;
    --color-white: #ffffff;
    --color-pale-blue: #e8f4f8;
    --color-notification-blue: #2563eb;
    --color-notification-blue-hover: #1d4ed8;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 15px 50px rgba(0, 0, 0, 0.1);
    --shadow-notification: 0 10px 40px rgba(37, 99, 235, 0.25);
    --radius-card: 28px;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base: prevent default link styling from affecting CTA buttons */
a.cta-button,
a.cta-button:link,
a.cta-button:visited {
    color: #ffffff !important;
    text-decoration: none !important;
    background-color: #27ae60 !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef4 50%, #f5f7fa 100%);
    min-height: 100vh;
    padding: 2rem 1.5rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
}

/* ============================================
   Background Decorative Shapes
   ============================================ */

.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #e8f0f5 0%, #dce8f0 100%);
    top: -15%;
    right: -10%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(180deg, #e8f4f8 0%, #e0eef5 100%);
    bottom: -10%;
    left: -8%;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(225deg, #f0f5f9 0%, #e8eef4 100%);
    top: 40%;
    left: 30%;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-gray-light);
    border-radius: 50%;
    opacity: 0.4;
}

.sparkle-1 { top: 20%; left: 15%; }
.sparkle-2 { top: 60%; right: 20%; }
.sparkle-3 { bottom: 25%; left: 25%; }

/* ============================================
   Main Container
   ============================================ */

.main-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 50%, #f8f9fa 100%);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 2rem 3rem 3rem;
}

/* ============================================
   Header / Navigation
   ============================================ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--color-gray-light);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-gray-mid);
}

.nav-link.active {
    color: var(--color-gray-dark);
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-green);
    border-radius: 1px;
}

/* ============================================
   Product Tabs (Switcher)
   ============================================ */

.product-tabs {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.product-tab {
    padding: 0.5rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-light);
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.product-tab:hover {
    color: var(--color-gray-mid);
    border-color: rgba(0, 0, 0, 0.12);
}

.product-tab-active {
    color: var(--color-green);
    border-color: var(--color-green);
    background: rgba(39, 174, 96, 0.08);
}

.hero-content-inner {
    transition: opacity 0.15s ease;
}

.hero-content-inner.product-content-fade-out {
    opacity: 0;
}

.hero-photo {
    transition: opacity 0.2s ease;
}

/* ============================================
   Reviews List (Dynamic)
   ============================================ */

.reviews-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-item {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.review-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-dark);
    margin-bottom: 0.25rem;
}

.review-stars {
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.review-text {
    font-size: 0.875rem;
    color: var(--color-gray-mid);
    line-height: 1.5;
    margin-top: 0.35rem;
}

/* ============================================
   Discount Notification (Bottom Right)
   ============================================ */

.discount-notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 340px;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    background: var(--color-notification-blue);
    color: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-notification);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.discount-notification-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.discount-notification-text {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

.discount-notification-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--color-white);
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.discount-notification-close:hover {
    opacity: 1;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-top: 3rem;
    min-height: 420px;
}

.hero-content {
    max-width: 480px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.hero-title-primary {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--color-orange);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-title-secondary {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--color-gray-mid);
    letter-spacing: 0.25em;
    line-height: 1.1;
}

.hero-description {
    font-size: 1rem;
    color: var(--color-gray-mid);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Reviews Section */
.reviews-section {
    margin-bottom: 1.5rem;
}

.hero-content-inner .cta-button {
    margin-top: 0.5rem;
}

.reviews-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e60;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.reviews-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    line-height: 1;
}

.stars-orange {
    color: var(--color-orange);
}

.stars-green {
    color: var(--color-green);
}

.reviews-count {
    font-size: 0.9375rem;
    color: var(--color-gray-dark);
}

.reviews-trustpilot {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trustpilot-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.trustpilot-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-dark);
}

.trustpilot-stars {
    position: relative;
    display: inline-block;
}

.trustpilot-stars .stars-empty {
    color: var(--color-gray-light);
    opacity: 0.5;
}

.trustpilot-stars .stars-filled {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-green);
    overflow: hidden;
    width: 90%;
    white-space: nowrap;
}

.trustpilot-score {
    font-size: 0.8125rem;
    color: #8b7355;
    margin-top: 0.15rem;
}

/* Primary CTA Button - FORCE styled as button, never as link
   Explicit hex colors to avoid cascade/specificity issues */
a.cta-button,
.cta-button,
a.cta-button.cta-button-secondary {
    display: inline-block;
    background-color: #27ae60 !important;
    color: #ffffff !important;
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    min-height: 60px;
    line-height: 1.2;
}

/* Override ALL link pseudo-states - no blue, no underline */
a.cta-button:link,
a.cta-button:visited,
a.cta-button:hover,
a.cta-button:active,
a.cta-button:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    background-color: #27ae60 !important;
}

a.cta-button:hover,
.cta-button:hover {
    background-color: #219a52 !important;
    transform: scale(1.03);
}

a.cta-button:active,
.cta-button:active {
    transform: scale(0.98);
}

/* Force white text on child spans - prevents inherited link color */
.cta-button .cta-button-text,
.cta-button .cta-button-arrow,
a.cta-button .cta-button-text,
a.cta-button .cta-button-arrow {
    color: #ffffff !important;
}

.cta-button-text {
    white-space: nowrap;
}

.cta-button-arrow {
    font-size: 1.125rem;
    line-height: 1;
}

.cta-button-secondary {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 260px;
}

/* ============================================
   Hero Image Area
   ============================================ */

.hero-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    gap: 0;
}

.hero-photo {
    max-width: 100%;
    width: 100%;
    max-height: 380px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.12));
    border-radius: var(--radius-card);
}

/* ============================================
   Responsive - Tablet
   ============================================ */

@media (max-width: 992px) {
    .main-container {
        padding: 1.75rem 2rem 2.5rem;
    }

    .hero {
        gap: 2.5rem;
        padding-top: 2.5rem;
        min-height: 360px;
    }

    .hero-title-secondary {
        letter-spacing: 0.15em;
    }

    .nav {
        gap: 2rem;
    }

    .hero-photo {
        max-height: 340px;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .main-container {
        padding: 1.5rem 1.5rem 2rem;
        border-radius: 20px;
    }

    .header {
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .nav {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        align-items: center;
        margin-bottom: 1.25rem;
    }

    .hero-title-primary,
    .hero-title-secondary {
        text-align: center;
    }

    .hero-title-secondary {
        letter-spacing: 0.2em;
    }

    .hero-description {
        text-align: center;
        margin-bottom: 1.5rem;
        font-size: 0.9375rem;
    }

    .reviews-section {
        text-align: center;
    }

    .reviews-rating {
        justify-content: center;
    }

    .reviews-trustpilot {
        align-items: center;
    }

    /* CTA force override on mobile - ensure button style, not link */
    .cta-button,
    a.cta-button {
        width: 90%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
        margin-bottom: 0.5rem;
        display: inline-block;
        text-align: center;
        background-color: #27ae60 !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .cta-button-secondary {
        margin-top: 20px;
        margin-bottom: 0;
        width: 90%;
        max-width: none;
    }

    /* Hero: single column layout (grid), content centered */

    .hero-image-wrapper {
        order: -1;
        min-height: 280px;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
    }

    .hero-image-wrapper .hero-photo {
        width: 100%;
        text-align: center;
    }

    .hero-photo {
        max-height: 280px;
    }

    .product-tabs {
        justify-content: center;
    }

    .discount-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-title-primary {
        font-size: 2rem;
    }

    .hero-title-secondary {
        font-size: 1.5rem;
        letter-spacing: 0.12em;
    }

    .hero-photo {
        max-height: 220px;
    }

    .product-tab {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .discount-notification-text {
        font-size: 0.875rem;
    }

    .cta-button {
        width: 95%;
        max-width: none;
        min-height: 56px;
    }

    .cta-button-secondary {
        margin-top: 1.5rem;
    }

    .hero-image-wrapper {
        gap: 1.5rem;
    }
}

/* ============================================
   CTA FORCE OVERRIDE - Last in cascade
   Ensures CTA never appears as blue link on any device
   ============================================ */
main .cta-button,
main a.cta-button,
.hero-content-inner a.cta-button,
.hero-image-wrapper a.cta-button {
    color: #ffffff !important;
    text-decoration: none !important;
    background-color: #27ae60 !important;
}

main .cta-button:hover,
main a.cta-button:hover {
    background-color: #219a52 !important;
    color: #ffffff !important;
}
