/* ==========================================================================
   Font-Face Declarations
   ========================================================================== */

/* Inter Regular (400) */
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Inter Medium (500) */
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Inter SemiBold (600) */
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Copernicus Book Regular (400) */
@font-face {
    font-family: "Copernicus";
    src: url("../fonts/copernicus-book-regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Skip-to-Content (Accessibility)
   ========================================================================== */

.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 20px;
    background: #054c6b;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #0b8bb8;
    outline-offset: 2px;
}

/* ==========================================================================
   Global Base & Typography
   ========================================================================== */

:root {
    --border-radius: 12px;
    --color-body-primary: #fff;
    --color-body-secondary: #f6fae7;
    --color-body-accent: #fefaf5;
    --color-primary: #054c6b;
    --color-primary-light: #0b8bb8;
    --color-body: #2e3133;
    --color-btn: #fffaf4;
    --color-border: #f0e6ee;
    --color-card: #63696e;
    --color-primary-pale: #e8f4f8;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.5;
}

p {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: "Copernicus";
    color: var(--color-primary);
    margin: 0;
}

h1{
    
    font-size: 3.5rem;
    
}

h2 {
    font-size: 3.2rem;
    
}
h3 {
    font-size: 2.3rem;
}

@media screen and (min-width:810px) {
    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 4rem;
    }

}

/* ==========================================================================
   Component: Link
   ========================================================================== */

.link {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.link:hover {
    color: var(--color-primary-light);
    cursor: pointer;
}

/* Link Arrow */

.link-arrow {
    align-items: center;
    color: var(--color-primary);
    display: inline-flex;
    font-family: "Copernicus";
    font-size: 1.9rem;
    font-weight: 400;
    gap: 0.4rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-arrow::after {
    content: "›";
    font-size: 2.2rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.link-arrow:hover {
    color: var(--color-primary-light);
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

.link-arrow--dark {
    color: var(--color-primary);
}

.link-arrow--light {
    color: var(--color-body-primary);
}

.link-arrow--light:hover {
    color: var(--color-body-secondary);
}

/* ==========================================================================
   Component: List
   ========================================================================== */

.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list--vertical {
    font-size: 1.5rem;
    font-family: "Copernicus";
    color: var(--color-primary);
}

.list--vertical .list__item {
    padding: 1rem 0;
}

.list--horizontal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-family: "Inter", sans-serif;
    font-size: 1.4rem;
}

.list--horizontal .list__item:not(:last-child)::after {
    content: "|";
    margin: 0 0.8rem;
    color: var(--color-primary);
}


@media screen and (min-width:640px) {
.list--vertical .list__item {
        padding: 1.7rem 0;
    }

}

/* Bullet modifier — overrides .list's list-style: none reset */
.list--bullet {
    list-style: disc;
    padding-left: 2rem;
    font-size: 1.4rem;
}

.list--bullet .list__item {
    padding: 0.4rem 0;
}

.list--bullet .list__item::marker {
    color: var(--color-primary);
}

/* ==========================================================================
   Component: Button
   ========================================================================== */


.btn {
    border-radius: 28px;
    border: 0;
    display: inline-block;
    font-family: "Copernicus";
    font-size: 1.8rem;
    line-height: 2rem;
    font-weight: 400;
    margin: 0;
    outline: 0;
    padding: 1.6rem 4rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    cursor: pointer;
}

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

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

.btn--small {
    font-size: 1.5rem;
    line-height: 1.8rem;
    padding: 1rem 2.5rem;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-btn);
}

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

.btn--light:hover {
    background: var(--color-body-primary);
    color: var(--color-primary-light);
}

/* ==========================================================================
   Component: Icon
   ========================================================================== */

.icon {
    color: var(--color-primary);
    display: inline-block;
    fill: var(--color-primary);
    height: 2rem;
    width: 2rem;
    transition: fill 0.3s ease, color 0.3s ease;
}

.icon:hover {
    color: var(--color-primary-light);
    fill: var(--color-primary-light);
    cursor: pointer;
}

/* ==========================================================================
   Component: Card
   ========================================================================== */

.card {
    background: var(--color-body-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    padding: 2rem;
    border: 1px solid var(--color-border);
}

.card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.card__header img {
    
    width: auto;
    object-fit: cover;
    max-width: 170px;
}

.card__header h3 {
    font-size: 2.3rem;
    padding: 2rem 0;
}

.card__description {
    color: var(--color-card);
    font-size: 1.7rem;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   Component: Media
   ========================================================================== */

.media {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.media__image {
    border-radius: 5px;
    height: 13vw;
    max-height: 17rem;
    max-width: 36rem;
    object-fit: cover;
    overflow: hidden;
    width: 28vw;
}

.media__header {
    align-items: center;
    display: flex;
    gap: 1.8rem;
    margin-bottom: 1.5rem;
}

.media__heading {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-primary);
    font-family: "Copernicus";
}

.media__description {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 1rem;
    padding: 0;
    color: var(--color-card);

}

@media screen and (min-width: 768px) {

    .media {
        border-bottom: 0;
        padding: 1rem 0;
    }

    .media__image {
        margin-bottom: 1rem;
    }

    .media__header {
        display: block;
    }

    .media__heading {
        font-size: 2rem;
        font-weight: 400;
    }

    .media__description {
        font-size: 1.6rem;
    }

}

/* ==========================================================================
   Component: Callout
   ========================================================================== */

.call-out {
    align-items: center;
    background: var(--color-body-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    padding: 4rem 3rem;
    text-align: center;
}

.call-out__heading {
    font-size: 3.4rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 1.5rem;
    max-width: 850px;
    padding: 0;
}

.call-out__description {
    color: var(--color-card);
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.5;
    margin: 0 0 2rem;
    max-width: 850px;
    padding: 0;
}

.call-out__tag {
    color: var(--color-primary-light);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

/* ==========================================================================
   Component: Author
   ========================================================================== */

.author {
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    text-align: center;
}

.author__image {
    border: 4px solid var(--color-border);
    border-radius: 100%;
    flex-shrink: 0;
    height: 12rem;
    margin-bottom: 1.5rem;
    object-fit: cover;
    width: 12rem;
}

.author__name {
    font-size: 2.2rem;
    font-weight: 400;
    margin: 0;
}

.author__role {
    color: var(--color-card);
    font-size: 1.4rem;
    margin: 0.4rem 0 0;
}

/* ==========================================================================
   Component: Table of Contents
   ========================================================================== */

.toc__header {
    border-bottom: 1px solid var(--color-body);
    padding-bottom: 2rem;
}

.toc__heading {
    font-weight: 300;
    line-height: 1.3;
}

.toc__item {
    border-bottom: 1px solid var(--color-border);
    display: block;
    font-family: "Copernicus";
    font-size: 1.9rem;
    font-weight: 300;
    padding: 1.2rem 0;
}

.toc__item:last-child {
    border-bottom: 0;
}

/* ==========================================================================
   Component: Product Card
   ========================================================================== */

.product-card {
    align-items: center;
    background: var(--color-body-accent);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: inherit;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
}

.product-card__image {
    border-radius: 0;
    height: auto;
    max-height: 24rem;
    object-fit: cover;
    width: 45%;
}

.product-card__body {
    padding: 2rem 2rem 2rem 0;
}

.product-card__heading {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.product-card__description {
    color: var(--color-card);
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.product-card__icon {
    fill: var(--color-primary);
    flex-shrink: 0;
    height: 2rem;
    padding: 0;
    width: 2rem;
}

@media screen and (min-width: 768px) {

    .product-card {
        flex-direction: column;
        gap: 0;
    }

    .product-card__image {
        height: 20rem;
        max-height: none;
        width: 100%;
    }

    .product-card__body {
        padding: 1.5rem 2rem 2rem;
    }

    .product-card__heading {
        font-size: 2rem;
    }

}

.product-card__stock {
    color: #0b5345;
}

.product-card__price {
    display: block;
    margin-top: 2rem;
}

/* ==========================================================================
   Component: Breadcrumb
   ========================================================================== */

.breadcrumb {
    background: var(--color-body-accent);
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb__inner {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.2rem 5.5vw;
}

.breadcrumb__list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 1.4rem;
    font-weight: 400;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb__link {
    color: var(--color-body);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb__link:hover {
    color: var(--color-primary);
}

.breadcrumb__separator {
    color: var(--color-card);
    margin: 0 0.7rem;
    user-select: none;
}

.breadcrumb__item:last-child .breadcrumb__link {
    color: var(--color-primary);
    font-weight: 500;
}

@media screen and (min-width: 768px) {
    .breadcrumb__inner {
        padding: 1.2rem 2rem;
    }
}

/* ==========================================================================
   Component: Collapsible
   ========================================================================== */

.collapsible__header {
    display: flex;
    justify-content: space-between;
}

.collapsible__heading {
    margin-top: 0;
    font-size: 3rem;
}

.collapsible__chevron {
    transform: rotate(-90deg);
    transition: transform 0.3s;
}

.collapsible__content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.collapsible--expanded .collapsible__chevron {
    transform: rotate(0);
}

.collapsible--expanded .collapsible__content {
    max-height: 100vh;
    opacity: 1;
}

.collapsible--expanded + .collapsible__content {
    max-height: 100vh;
    opacity: 1;
}

/* ==========================================================================
   Component: Grid
   ========================================================================== */

.grid {
    display: grid;
}

@media screen and (min-width: 768px) {
    .grid--1x2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 768px) {
    .grid--1x3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ==========================================================================
   Component: FAQ
   ========================================================================== */

/* Base block — structural styles shared by all FAQ variants */

.faq__item {
    border-bottom: 1px solid var(--color-primary);
}

.faq__item:first-child {
    border-top: 1px solid var(--color-primary);
}

.faq__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
}

.faq__heading {
    font-family: "Copernicus";
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-primary);
}

.faq__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq__toggle .icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq .icon--collapsed {
    opacity: 1;
}

.faq .icon--expanded {
    opacity: 0;
}

.faq .collapsible--expanded .icon--collapsed {
    opacity: 0;
}

.faq .collapsible--expanded .icon--expanded {
    opacity: 1;
}

.faq__content {
    color: var(--color-card);
    font-size: 1.5rem;
    font-weight: 400;
    padding: 0;
}

.faq__content > p {
    padding: 1rem 0 1.5rem;
}

/* --circle variant */

.faq--circle .faq__toggle {
    background: var(--color-primary-pale);
    border-radius: 50%;
    height: 3.2rem;
    width: 3.2rem;
}

.faq--circle .faq__header:hover .faq__toggle {
    background: #d0e8f0;
}

.faq--circle .faq__toggle .icon {
    height: 1.6rem;
    position: absolute;
    width: 1.6rem;
}

@media screen and (min-width: 768px) {
    .faq__heading {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   Component: Page Container
   ========================================================================== */

.page-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Component: Block
   ========================================================================== */

.block {
}

.block__inner {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 5.5vw;
}

.block--gradient {
    background: linear-gradient(
        to bottom,
        var(--color-body-secondary),
        var(--color-body-primary)
    );
}

.block--secondary {
    background: var(--color-body-secondary);
}

.block--accent {
    background: var(--color-body-accent);
}

.block--primary {
    background: var(--color-primary);
}

.block__content {
    padding-bottom: 4rem;
    color: var(--color-card);
        font-size: 1.8rem;
}

.block__header {
    margin-bottom: 2rem;
}

.block__heading {
    margin: 0;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.block__separator {
    border-bottom: 1px solid var(--color-border);
}

@media screen and (min-width: 768px) {

    .block__heading {
        font-size: 3.5rem;
    }

    .block__inner {
        padding: 4rem 2rem;
    }


}

.block__subheading {
    color: var(--color-primary);
    font-family: 'Copernicus Book', serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.block__footnote {
    color: var(--color-card);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Block — How It Works */

.block--how-it-works .media__image {
    height: auto;
    max-height: 14rem;
    max-width: 14rem;
    width: auto;
}

.block--how-it-works .grid {
    margin-top: 3rem;
}

.block--how-it-works .block__separator {
    display: none;
}

@media screen and (min-width: 768px) {
    .block--how-it-works .grid {
        gap: 4rem;
    }

    .block--how-it-works .media {
        text-align: center;
    }

    .block--how-it-works .media__image {
        margin-left: auto;
        margin-right: auto;
    }

    .block--how-it-works .block__separator {
        display: block;
    }
}

/* Block — Treatments */

.block--treatments .grid {
    gap: 3rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.block--treatments .product-card__image {
    max-height: none;
    width: 90%;
}

/* Block — FAQ */

.block--faq .block__header {
    margin-bottom: 4rem;
}

/* Block — Article */

/* Mobile: single-column, TOC hidden */
.block--article .toc {
    display: none;
}

.block--article .block__heading {
    font-size: 3.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.block--article .article__meta {
    color: var(--color-card);
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
}

/* Article body typography */
.block--article article h2 {
    font-size: 2.3rem;
    margin: 3.5rem 0 1.5rem;
}

.block--article article h3 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
}

/* Legal pages — smaller H2s for policy copy */
.block--legal article h2 {
    font-size: 2rem;
    margin: 3rem 0 1.2rem;
}

.block--legal article h3 {
    font-size: 1.7rem;
    margin: 2rem 0 1rem;
}

.block--article article p {
    color: var(--color-body);
    font-size: 1.7rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.block--article article .list--bullet {
    margin-bottom: 1.5rem;
}

/* Desktop: two-column grid with sticky TOC */
@media screen and (min-width: 990px) {
    .block--article .block__inner {
        align-items: start;
        display: grid;
        grid-template-columns: 28rem 1fr;
        gap: 5rem;
    }

    .block--article .toc {
        display: block;
        background: var(--color-body-accent);
        border: 1px solid var(--color-border);
        border-radius: var(--border-radius);
        padding: 2rem;
        position: sticky;
        top: 2rem;
    }

    .block--article .toc__header {
        border-bottom-color: var(--color-primary);
    }

    .block--article .block__heading {
        font-size: 4rem;
    }

    .block--article article h2 {
        font-size: 2.8rem;
    }
}

/* ==========================================================================
   Component: Hero
   ========================================================================== */

.hero {
    align-items: center;
    display: grid;
    gap: 3rem;
}

.hero__content {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}



.hero__heading {
    line-height: 1.2;
    
}

.hero__description {
    color: var(--color-card);
    font-size: 1.7rem;
    line-height: 1.6;
}

.hero__tagline {
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: 500;
}

.hero__image-wrapper {
    display: flex;
    justify-content: center;
}

.hero__image {
    border-radius: var(--border-radius);
    height: auto;
    max-width: 100%;
}

@media screen and (min-width: 768px) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }
}

/* Block — Product Hero */

.block--product-hero .hero__tagline {
    font-size: 1.8rem;
}

.block--product-hero .product-hero__price {
    font-weight: 600;
}

/* ==========================================================================
   Component: Nav
   ========================================================================== */

.block--nav {
}

.block--nav .block__inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.block--nav .btn {
    margin: 0;
}

.nav__logo img {
    display: block;
    height: auto;
    max-width: 260px;
}

.nav__menu {
    cursor: pointer;
    flex-shrink: 0;
    height: 4rem;
    width: 4rem;
}

.nav__actions {
    align-items: center;
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    width: 100%;
}

.nav__login-btn {
    display: none;
}

.nav__list {
    width: 100%;
}

.nav__item {
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

@media screen and (min-width: 990px) {

    .block--nav .block__inner {
        flex-wrap: nowrap;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .nav__menu {
        display: none;
    }

    .nav__actions {
        margin-top: 0;
        order: 3;
        width: auto;
    }

    .nav__login-btn {
        display: inline-block;
    }

    .nav__login-link {
        display: none;
    }

    .block--nav .collapsible__content {
        max-height: 100vh;
        opacity: 1;
    }

    .nav__list {
        align-items: center;
        display: flex;
        gap: 3rem;
        justify-content: center;
        order: 2;
        width: auto;
    }

    .nav__item {
        border-bottom: 0;
        padding: 0;
    }

    .block--nav .link-arrow {
        font-size: 1.7rem;
    }
}

/* Nav — Classic Light */
.block--nav-light {
    background: var(--color-body-primary);
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Component: Blog Card
   ========================================================================== */

.blog-card {
    background: var(--color-body-accent);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.blog-card__image-wrapper {
    background: var(--color-body-secondary);
    overflow: hidden;
}

.blog-card__image {
    display: block;
    height: 20rem;
    object-fit: cover;
    transition: transform 0.4s ease;
    width: 100%;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.03);
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2rem 2rem 2.5rem;
}

.blog-card__category {
    color: var(--color-primary-light);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.blog-card__heading {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-card__description {
    color: var(--color-card);
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card__meta {
    color: var(--color-card);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.blog-card__link {
    font-family: "Copernicus";
    font-size: 1.6rem;
}

@media screen and (min-width: 768px) {
    .blog-card__heading {
        font-size: 2.2rem;
    }

    .blog-card__description {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Block: Blog Listing
   ========================================================================== */

.block--blog-listing .grid {
    gap: 2.5rem;
    margin-top: 2rem;
}

.block--blog-listing .block__header {
    margin-bottom: 0;
}

/* 2 columns at tablet */
@media screen and (min-width: 768px) {
    .block--blog-listing .grid {
        gap: 3rem;
        grid-template-columns: 1fr 1fr;
    }
}

/* 3 columns at desktop */
@media screen and (min-width: 990px) {
    .block--blog-listing .grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ==========================================================================
   Section: Footer
   ========================================================================== */

/* Footer — top links section (accent background) */
.footer__links {
    background: var(--color-body-accent);
}

/* Footer list — each link column */
.footer-list {
    border-top: 1px solid #ccc;
    padding: 1rem 0;
}

.footer-list--last {
    border-bottom: 1px solid #ccc;
}

.footer-list__header {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.footer-list__header .icon {
    color: #999;
    width: 4rem;
    height: 4rem;
    margin-right: 1rem;
}

.footer-list__heading {
    font-family: "Copernicus", serif;
    font-size: 2rem;
    font-weight: 400;
    color: #999;
    margin: 0;
}

/* Collapsible icon swap */
.footer-list .icon--expanded {
    display: none;
}

.footer-list.collapsible--expanded .icon--expanded {
    display: block;
}

.footer-list.collapsible--expanded .icon--collapsed {
    display: none;
}

/* Footer list items */
.footer-list__items {
    margin-left: 5rem;
}

.footer-list__items .list__item,
.footer-list__items .list__item > a {
    font-weight: 400;
    color: var(--color-card);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list__items .list__item:hover,
.footer-list__items .list__item > a:hover {
    color: var(--color-primary);
}

/* Footer — bottom brand bar (dark background) */
.footer__brand-bar {
    background: var(--color-primary);
    padding-top: 3rem;
}

.footer__brand-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__logo {
    width: 100%;
    max-width: 260px;
    height: auto;
}

.footer__copyright {
    color: #aaa;
    font-size: 1.2rem;
    margin: 1rem 0 0 0;
    text-align: center;
}

/* Brand right: payments + regulatory grouped together */
.footer__brand-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* Payment method icons */
.footer__payments {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__payment-icon {
    width: 4.5rem;
    height: 3rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer__payment-icon:hover {
    opacity: 1;
}

/* Regulatory / GPhC badge */
.footer__regulatory {
    display: flex;
    align-items: center;
}

.footer__pharmacy-logo {
    width: 7rem;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer__pharmacy-logo:hover {
    opacity: 1;
}

/* Disclaimer */
.footer__disclaimer {
    color: #999;
    font-size: 1.3rem;
    text-align: center;
    line-height: 1.6;
    margin: 2rem 0 0 0;
    padding: 2rem 2rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Footer — Desktop (min-width: 990px)
   ========================================================================== */

@media screen and (min-width: 990px) {

    /* Links grid: 3 columns */
    .footer__links-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
        gap: 3rem;
    }

    /* Hide toggle icons, remove borders, always show content */
    .footer-list .icon--expanded,
    .footer-list .icon--collapsed {
        display: none !important;
    }

    .footer-list {
        padding: 0;
        border-top: 0;
    }

    .footer-list--last {
        border-bottom: 0;
    }

    .footer-list__items {
        margin-left: 0;
    }

    .footer-list__heading {
        color: var(--color-primary);
        font-size: 2.2rem;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 1.5rem;
        margin-bottom: 1rem;
    }

    .footer-list .collapsible__content {
        max-height: 100vh;
        opacity: 1;
    }

    /* Brand bar: horizontal layout */
    .footer__brand-bar-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 2rem;
    }

    .footer__brand {
        align-items: flex-start;
        flex-shrink: 0;
    }

    .footer__copyright {
        text-align: left;
    }

    .footer__brand-right {
        margin-left: auto;
    }
}

/* ==========================================================================
   Component: Pricing Table
   ========================================================================== */

.pricing-table {
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-top: 2rem;
    width: 100%;
}

.pricing-table thead tr {
    background-color: var(--color-primary);
    color: #fff;
}

.pricing-table th {
    font-family: 'Copernicus Book', serif;
    font-weight: 400;
    padding: 0.75rem 1rem;
    text-align: left;
}

.pricing-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
}

.pricing-table tbody tr:nth-child(even) {
    background-color: var(--color-secondary-background);
}

.pricing-table tbody td:first-child {
    font-weight: 500;
}

.pricing-table tbody td:nth-child(3) {
    color: var(--color-primary);
    font-weight: 600;
}

@media screen and (max-width: 640px) {

    .pricing-table {
        font-size: 0.85rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.5rem 0.75rem;
    }
}

