/* =========================================================
   PurDentix — COMMON STYLESHEET
   Shared by: index.html, about.html, purdentix-official.html, purdentix-buy.html
   Keep ONE file so every page stays visually consistent.
   ========================================================= */
:root {
    --primary-color: #247DA5;
    /* brand blue */
    --primary-dark: #041C3D;
    /* brand navy */
    --secondary-color: #d7bb52;
    /* gold accent */
    --accent-green: #059669;
    /* health / trust green */
    --light-bg: #f8f8f8;
    --dark-bg: #333;
    --white: #fff;
    --black: #000;
    --price-red: #8B0000;
    --red-accent: #E44D26;
    --font-size-base: 1.05rem;
    --font-size-medium: 1.15rem;
    --font-size-large: 1.25rem;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-top: 35px;
    /* fixed header offset */
}

body {
    font-family: 'Montserrat', 'Roboto', 'Segoe UI', sans-serif;
    color: #333;
    font-size: var(--font-size-base);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width:576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width:768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width:992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width:1200px) {
    .container {
        max-width: 1200px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

.btn {
    font-weight: 600;
    font-size: var(--font-size-medium);
    padding: .6rem 1.5rem;
    border-radius: 5px;
    transition: all .3s ease;
}

.btn-lg {
    font-size: var(--font-size-large);
    padding: .8rem 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1c6284;
    border-color: #1c6284;
}

.btn-warning {
    background-color: #FFC107 !important;
    border-color: var(--secondary-color);
    color: var(--black);
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: var(--black);
}

/* ---------- HEADER / NAV (shared across all pages) ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 9999;
    background: #000;
    border-bottom: 1px solid #eee;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
}

.text-logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #fff;
    display: inline-block;
    transition: color .25s ease, transform .25s ease;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: #d62828;
    transform: translateY(-3px);
}

.header-cta {
    flex-shrink: 0;
}

.header-cta .btn-primary {
    background: #d62828;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    border: none;
}

.hamburger {
    display: none;
    width: 30px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    margin: 6px 0;
}

.mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 20px;
    text-align: center;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.mobile-menu li {
    margin: 12px 0;
}

.mobile-menu a {
    color: #000;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    transition: color .25s ease, transform .25s ease;
    text-decoration: none;
}

.mobile-menu a:hover {
    color: #d62828;
    transform: translateY(-3px);
}

.mobile-cta {
    display: inline-block;
    background: #d62828;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

.mobile-menu.active {
    display: block;
}

@media (max-width:768px) {
    .header-flex {
        padding: 14px 18px;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .hamburger {
        display: block;
        margin-left: auto;
        padding-right: 6px;
    }

    .text-logo {
        font-size: 22px;
    }
}

/* ---------- HERO (home) ---------- */
.hero-section {
    background-color: var(--primary-color);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: var(--font-size-large);
}

/* ---------- PAGE / BREADCRUMB HERO (about, official, buy) ---------- */
.page-hero {
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .08) 0, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .06) 0, transparent 40%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: .5rem;
}

.page-hero p {
    font-size: var(--font-size-large);
    opacity: .92;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero .crumbs {
    font-size: .95rem;
    opacity: .8;
    margin-bottom: 14px;
}

.page-hero .crumbs a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, .5);
}

.page-hero .crumbs a:hover {
    border-bottom-color: #fff;
}

/* ---------- BENEFIT / VALUE CARDS ---------- */
.benefit-card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1);
    background-color: var(--primary-color);
    color: var(--white);
    transition: transform .3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card h4 {
    margin-bottom: 1rem;
}

.icon-circle {
    width: 74px;
    height: 74px;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.icon-circle svg {
    width: 34px;
    height: 34px;
}

/* ---------- INGREDIENT CARDS ---------- */
.ingredient-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1);
    transition: all .3s ease;
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
}

.ingredient-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

.ingredient-card h4 {
    font-size: 1.25rem;
    margin-top: 20px;
    margin-bottom: 15px;
}

.ingredient-card p {
    margin-bottom: 0;
}

/* ---------- COMPARISON ---------- */
.comparison-container {
    border: 2px dashed #ddd;
    border-radius: 15px;
    padding: 30px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.comparison-container h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-align: center;
}

.check-list li,
.x-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: var(--font-size-medium);
}

.check-list i,
.x-list i {
    margin-top: 3px;
}

.check-list i {
    color: #42b983;
    font-size: 20px;
}

.x-list i {
    color: var(--red-accent);
    font-size: 20px;
}

/* ---------- PRICING ---------- */
.pricing-card {
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1);
    transition: transform .3s ease;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    transform: scale(1.02);
    position: relative;
    z-index: 1;
    border: 2px solid var(--secondary-color);
}

.pricing-card.popular:hover {
    transform: scale(1.05);
}

.pricing-title {
    background-color: #f8f8f8;
}

.price {
    margin: 15px 0;
}

.price h2 {
    font-size: 4.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.per-bottle {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 600;
    display: inline-block;
    text-align: left;
    padding-left: 5px;
}

.total-price {
    font-size: 1.3rem;
}

.button-buy-b {
    background: #FFC107 !important;
    color: #000;
    border: none;
}

.button-buy-b:hover {
    background: #e0a800 !important;
    color: #000;
}

.best-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red-accent);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: .5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
}

/* ---------- TRUST / GUARANTEE BADGES ---------- */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;
}

.trust-badge .icon-circle {
    background-color: rgba(36, 125, 165, .1);
    color: var(--primary-color);
}

.trust-badge span {
    font-weight: 600;
    font-size: .95rem;
    color: var(--primary-dark);
}

/* ---------- STEPS (how to order) ---------- */
.steps-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    counter-reset: step;
}

.step-card {
    flex: 1 1 240px;
    max-width: 280px;
    background: #fff;
    border-radius: 14px;
    padding: 30px 22px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    position: relative;
}

.step-card .step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 16px;
}

.step-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: .95rem;
    margin-bottom: 0;
    color: #555;
}

/* ---------- TIMELINE (about page — company milestones) ---------- */
.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 800px;
    padding-left: 30px;
    border-left: 3px solid var(--secondary-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    padding-left: 26px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -39px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-item h4 {
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.timeline-item span.year {
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: .5px;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
    border-radius: 18px;
    padding: 50px 30px;
    text-align: center;
}

.cta-banner h2 {
    margin-bottom: 12px;
}

.cta-banner p {
    opacity: .92;
    max-width: 600px;
    margin: 0 auto 24px;
}

/* ---------- AUTHENTICITY / WARNING BOX (official page) ---------- */
.authentic-box {
    background: #fff8e6;
    border: 2px solid var(--secondary-color);
    border-radius: 14px;
    padding: 26px 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.authentic-box .warn-icon {
    font-size: 2rem;
    color: #c99a1e;
    flex-shrink: 0;
}

.authentic-box h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.authentic-box p {
    margin-bottom: 0;
    color: #555;
}

.verify-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.verify-item {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
}

.verify-item i {
    color: var(--accent-green);
    font-size: 1.3rem;
}

/* ---------- QUALITY SECTION (from home, reused) ---------- */
.quality-section {
    width: 100%;
    background: #F7F7F5;
    padding: 50px 0;
}

.quality-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 25px;
}

.quality-image {
    width: 360px;
    flex-shrink: 0;
}

.quality-image img {
    width: 100%;
    max-width: 360px;
    border-radius: 22px;
    display: block;
}

.quality-content {
    width: 52%;
}

.quality-content h2 {
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    color: #111;
    margin-bottom: 18px;
}

.quality-content ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.quality-content ul li {
    font-size: 20px;
    line-height: 1.5;
    color: #111;
    margin-bottom: 8px;
    position: relative;
    padding-left: 28px;
}

.quality-content ul li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    color: var(--accent-green);
}

/* ---------- REVIEWS ---------- */
.reviews-section {
    width: 100%;
    padding: 50px 0;
    background: #F7F7F5;
    text-align: center;
}

.reviews-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-section h2 {
    font-size: 32px;
    color: #273A30;
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding-inline: 12px;
}

.review-card {
    border: 2px solid #273A30;
    background: #fff;
    padding: 28px 22px;
    border-radius: 18px;
    box-shadow: 0 5px 0 #273A30;
    transition: .3s;
    text-align: center;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 18px;
    object-fit: cover;
    display: block;
    border: 5px solid #DFBF75;
    padding: 4px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(0 0 0 / .12);
}

.review-card h3 {
    margin-bottom: 5px;
    color: #1e73be;
    font-size: 22px;
    font-weight: 700;
}

.stars {
    color: #ffb400;
    margin-bottom: 12px;
    font-size: 20px;
    letter-spacing: 2px;
}

.review-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* ---------- FAQ ---------- */
.accordion-button:not(.collapsed) {
    color: var(--primary-dark);
    background-color: #eaf3f8;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* ---------- STICKY MOBILE BUY BAR (buy page) ---------- */
.sticky-buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
    padding: 12px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sticky-buy-bar strong {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .sticky-buy-bar {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }
}

/* ---------- SALES POPUP ---------- */
.sales-popup {
    position: fixed;
    left: 25px;
    bottom: 25px;
    width: 430px;
    background: var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
    padding: 18px;
    z-index: 99999;
    animation: slideUp .5s ease;
    font-family: Arial, sans-serif;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 15px;
    margin-bottom: 5px;
}

.popup-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-content img {
    width: 95px;
}

.popup-text {
    width: 70%;
    font-size: 15px;
    line-height: 1.45;
    color: #fff;
}

.popup-text strong {
    font-weight: 700;
}

.popup-footer {
    margin-top: 5px;
    color: #fefefe;
    font-size: 14px;
}

@keyframes slideUp {
    from {
        transform: translateY(80px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .sales-popup {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 90px;
    }

    .popup-text {
        font-size: 16px;
    }

    .popup-content img {
        width: 75px;
    }
}

/* ---------- FOOTER ---------- */
footer a {
    text-decoration: none;
    transition: color .3s ease;
    font-size: var(--font-size-base);
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    :root {
        --font-size-base: 1rem;
        --font-size-medium: 1.1rem;
        --font-size-large: 1.2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .page-hero {
        padding: 55px 0 45px;
    }

    .page-hero h1 {
        font-size: 2.1rem;
    }

    .container {
        width: 100%;
        max-width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .row>[class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .comparison-container {
        padding: 15px 10px;
    }

    .price h2 {
        font-size: 2.8rem;
    }

    .per-bottle {
        font-size: .8rem;
    }

    .pricing-card.popular {
        transform: scale(1);
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

    .quality-container {
        flex-direction: column;
        gap: 20px;
    }

    .quality-image,
    .quality-content {
        width: 100%;
    }

    .quality-content h2 {
        font-size: 30px;
        text-align: center;
    }

    .quality-content ul li {
        font-size: 18px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-inline: 0;
    }

    .verify-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 22px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .authentic-box {
        flex-direction: column;
        text-align: center;
    }

    [data-aos-delay] {
        transition-delay: 0s !important;
    }
}

@media (max-width: 576px) {

    .col-md-6,
    .col-md-4,
    .col-md-8,
    .col-md-3,
    .col-md-9 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}