/* =========================================================
   NOXA — About Page
   Palette / type / motion tuned to echo rhode's about page:
   warm ivory ground, serif-italic headlines, quiet scroll
   reveals that re-trigger every time a section is re-entered,
   restrained hover states.
   ========================================================= */

:root {
    --ivory: #faf7f2;
    --stone: #efe9e1;
    --ink: #1c1a17;
    --taupe: #8c8377;
    --blush: #e7c7bd;
    --white: #ffffff;

    --body-font: 'Inter', sans-serif;
    --heading-font: 'Playfair Display', serif;
}

body {
    font-family: var(--body-font);
    background: var(--ivory);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; }

/* ================= HERO BANNER (top image) — unchanged ================= */

.hero-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 12px;
}

.hero-wrapper.container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.hero-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 22px;
    overflow: hidden;
    margin-top: 20px;
    line-height: 0;
    font-size: 0;
    background: var(--ink);
}

.hero-img {
    position: absolute;
    inset: 0;
    display: block;
    background-image: url("https://images.unsplash.com/photo-1485178575877-1a13bf489dfe?q=80&w=1600&auto=format&fit=crop");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 22%;
    transform: scale(1.08);
    opacity: 0;
    animation: heroImageIn 1.4s cubic-bezier(.2,.65,.3,1) forwards;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 70px;
    padding-right: 20px;
    background: linear-gradient(to right,
        rgba(0,0,0,.60) 0%,
        rgba(0,0,0,.30) 35%,
        rgba(0,0,0,.12) 55%,
        rgba(0,0,0,0) 75%);
}

.hero-content {
    color: var(--white);
    max-width: 520px;
    text-align: left;
}

.hero-text {
    font-family: var(--heading-font);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: .3px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(18px);
    animation: heroTextIn .9s cubic-bezier(.2,.65,.3,1) .5s forwards;
}

.hero-btn {
    display: inline-block;
    background: var(--white);
    color: var(--ink);
    padding: 13px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    opacity: 0;
    transform: translateY(18px);
    animation: heroTextIn .9s cubic-bezier(.2,.65,.3,1) .8s forwards;
    transition: background .35s ease, color .35s ease;
}

.hero-btn:hover {
    background: var(--blush);
    color: var(--ink);
}

@keyframes heroImageIn {
    to { opacity: 1; transform: scale(1); }
}

@keyframes heroTextIn {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .hero-container { aspect-ratio: 14 / 7; }
    .hero-img { background-position: center 20%; }
}

@media (max-width: 768px) {
    .hero-container { aspect-ratio: 4 / 5; border-radius: 16px; }
    .hero-img { background-position: center 18%; }
    .hero-overlay {
        justify-content: center;
        padding-left: 20px;
        text-align: center;
        background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,.25), rgba(0,0,0,.5));
    }
    .hero-content { max-width: 90%; text-align: center; }
    .hero-text { font-size: clamp(1.4rem, 5vw, 2rem); }
    .hero-btn { padding: 10px 22px; font-size: 14px; }
}

@media (max-width: 480px) {
    .hero-container { aspect-ratio: 3 / 4; }
    .hero-img { background-position: center 16%; }
}

/* ================= PAGE HERO (headline + philosophy line) ================= */

.about-hero {
    padding: 110px 0 70px;
    text-align: center;
}

.about-hero h1 {
    font-family: var(--heading-font);
    font-size: clamp(2.8rem, 8vw, 4.8rem);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 30px;
}

.philosophy-text {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--ink);
}

.image-banner {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    margin: 50px 0;
}

/* ================= FOUNDER QUOTE ================= */

.founder-quote-section {
    padding: 110px 0;
    text-align: center;
}

.founder-quote-section .section-subtitle {
    display: block;
    margin-bottom: 22px;
}

.founder-quote {
    font-family: var(--heading-font);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.4;
    max-width: 780px;
    margin: 0 auto;
    color: #6b6660;
}

.founder-signature {
    display: block;
    margin-top: 26px;
    font-family: var(--heading-font);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--taupe);
}

/* ================= SECTIONS ================= */

.philosophy-section {
    padding: 90px 0;
}

.founder-section {
    padding: 100px 0;
    background: var(--stone);
}

.foundation-section {
    padding: 100px 0;
    text-align: center;
}

/* ================= HEADINGS ================= */

.section-subtitle {
    text-transform: lowercase;
    font-size: .8rem;
    letter-spacing: .5px;
    color: var(--taupe);
}

.founder-heading {
    font-family: var(--heading-font);
    font-style: italic;
    font-size: 2.6rem;
    margin-bottom: 20px;
}

/* ================= VALUES — IMAGE + ACCORDION ================= */

.values-section {
    padding: 0;
    background: var(--stone);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 620px;
}

.values-photo {
    position: relative;
    overflow: hidden;
}

.values-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transform: scale(1.05);
    transition: transform 1.2s cubic-bezier(.2,.65,.3,1);
}

.values-photo:hover img {
    transform: scale(1);
}

.values-copy {
    padding: 90px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.values-copy .values-heading {
    font-family: var(--body-font);
    font-style: normal;
    font-weight: 700;
    font-size: 2.3rem;
    letter-spacing: -.3px;
    color: #2c2a27;
    margin-bottom: 18px;
}

.values-copy > p {
    max-width: 460px;
    margin-bottom: 40px;
    color: #4a453f;
}

.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--body-font);
    font-style: normal;
    font-weight: 600;
    font-size: 1.15rem;
    color: #2c2a27;
}

.accordion-noxa {
    border-top: 1px solid rgba(28,26,23,.15);
}

.accordion-item-noxa {
    border-bottom: 1px solid rgba(28,26,23,.15);
}

.accordion-trigger .accordion-icon {
    font-family: var(--body-font);
    font-style: normal;
    font-size: 1.3rem;
    transition: transform .4s ease;
    color: var(--taupe);
}

.accordion-item-noxa.open .accordion-trigger .accordion-icon {
    transform: rotate(45deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.2,.65,.3,1);
}

.accordion-item-noxa.open .accordion-panel {
    max-height: 220px;
}

.accordion-panel p {
    padding-bottom: 24px;
    color: #3a3733;
    max-width: 460px;
}

@media (max-width: 768px) {
    .values-grid { grid-template-columns: 1fr; min-height: 0; }
    .values-photo { height: 340px; }
    .values-copy { padding: 60px 28px; }
}

/* ================= BADGES ("the noxa ahead") ================= */

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.badge-pill {
    border: 1px solid var(--ink);
    border-radius: 40px;
    padding: 8px 20px;
    font-size: .8rem;
    letter-spacing: .3px;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.badge-pill:hover {
    background: var(--ink);
    color: var(--white);
}

/* ================= RESEARCH-BACKED INGREDIENTS ================= */

.ingredients-section {
    padding: 100px 0;
    background: #f2f0eb;
}

.ingredients-header {
    max-width: 700px;
    margin-bottom: 50px;
}

.ingredients-header .founder-heading {
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.15;
}

.ingredients-header .philosophy-text {
    margin: 0;
    font-size: 1.05rem;
    max-width: 560px;
}

.ingredients-carousel-wrapper {
    position: relative;
    width: 100%;
}

.ingredients-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
}

.ingredients-track::-webkit-scrollbar {
    display: none;
}

.ingredient-card {
    position: relative;
    flex: 0 0 calc(25% - 12px);
    min-width: 270px;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
    background: #e2e2e2;
}

.ingredient-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.9);
    transition: transform .7s cubic-bezier(.2,.65,.3,1), filter .5s ease;
}

.ingredient-card:hover .ingredient-img {
    transform: scale(1.05);
    filter: grayscale(0.8) brightness(0.85);
}

.ingredient-overlay {
    position: absolute;
    inset: 0;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
    color: #ffffff;
    text-align: left;
}

.ingredient-name {
    font-family: var(--body-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 1.1rem;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.ingredient-desc {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.35;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    color: #1c1a17;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev-btn {
    left: 12px;
}

.carousel-btn.next-btn {
    right: 12px;
}

.swipe-hint {
    text-align: center;
    font-size: .75rem;
    letter-spacing: .5px;
    color: var(--taupe);
    margin-top: 18px;
    text-transform: lowercase;
}

@media (max-width: 992px) {
    .ingredient-card {
        flex: 0 0 calc(33.333% - 12px);
    }
}

@media (max-width: 768px) {
    .ingredients-section { padding: 70px 0; }
    .ingredient-card { flex: 0 0 240px; }
    .carousel-btn { display: none; }
}

/* ================= SHOP THE EDIT — PRODUCT CAROUSEL ================= */

.shop-edit-section {
    padding: 90px 0 110px;
    background: var(--white);
}

.shop-edit-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
}

.shop-card {
    position: relative;
    flex: 0 0 320px;
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
    overflow: hidden;
    background: var(--stone);
}

.shop-card-label {
    position: absolute;
    top: 26px;
    left: 26px;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 2.1rem;
    letter-spacing: -.5px;
    color: rgba(28,26,23,.22);
    z-index: 3;
    text-transform: lowercase;
}

.shop-card-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s cubic-bezier(.2,.65,.3,1);
}

.shop-card-img svg {
    width: 34%;
    height: auto;
}

.shop-card-img--base {
    opacity: 1;
    z-index: 1;
    color: var(--ink);
}

.shop-card-img--base svg {
    opacity: .5;
}

.shop-card-img--hover {
    opacity: 0;
    z-index: 2;
    color: var(--ink);
}

.shop-card-img--hover svg {
    opacity: .82;
    transform: scale(1.06);
    transition: transform .6s cubic-bezier(.2,.65,.3,1);
}

.shop-card:hover .shop-card-img--base {
    opacity: 0;
}

.shop-card:hover .shop-card-img--hover {
    opacity: 1;
}

.shop-tint-sunscreen { background: #f3ded0; }
.shop-tint-serum { background: #ecd9b8; }
.shop-tint-nightcream { background: #e8e2dc; }
.shop-tint-lipbalm { background: #e9c8c8; }

.shop-card-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .85rem;
}

.shop-card-name {
    font-weight: 600;
    color: var(--ink);
}

.shop-card-rating {
    color: var(--taupe);
    font-size: .75rem;
}

.shop-card-rating i {
    color: var(--blush);
    font-size: .7rem;
}

.shop-card-price {
    font-weight: 600;
    color: var(--ink);
}

.shop-card:hover .shop-card-price {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ================= BUTTON ================= */

.btn-noxa {
    background: var(--ink);
    color: var(--white);
    border-radius: 50px;
    padding: 12px 40px;
    font-size: .8rem;
    letter-spacing: .3px;
    transition: background .3s ease, color .3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-noxa:hover {
    background: var(--blush);
    color: var(--ink);
}

/* underline-wipe for inline text links inside copy */
.about-hero a,
.philosophy-section a,
.founder-section a {
    color: var(--ink);
    text-decoration: none;
    background-image: linear-gradient(var(--blush), var(--blush));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size .35s ease;
}

.about-hero a:hover,
.philosophy-section a:hover,
.founder-section a:hover {
    background-size: 100% 1px;
}

/* ================= SCROLL REVEALS (re-trigger every entry) ================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s cubic-bezier(.2,.65,.3,1), transform .9s cubic-bezier(.2,.65,.3,1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity .9s cubic-bezier(.2,.65,.3,1), transform .9s cubic-bezier(.2,.65,.3,1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity .9s cubic-bezier(.2,.65,.3,1), transform .9s cubic-bezier(.2,.65,.3,1);
}

.reveal.show,
.reveal-left.show,
.reveal-right.show {
    opacity: 1;
    transform: translate(0, 0);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .image-banner { height: 45vh; }
    .philosophy-text { font-size: 1.1rem; }
    .founder-quote-section { padding: 80px 0; }
    .shop-card { flex: 0 0 250px; }
    .shop-card-label { font-size: 1.5rem; }
}

/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    .reveal, .reveal-left, .reveal-right,
    .hero-text, .hero-btn, .hero-img {
        opacity: 1 !important;
        transform: none !important;
    }
}