/* 
    Fasbags Mother's Day Landing Page
    Design System — Blush Pink Palette
    Colors: #FDF5F6 (Blush), #4A3B3D (Ash Brown), #B76E79 (Rose Gold), #D6A2A8 (Dusty Pink)
    Typography: Playfair Display (Serif), Montserrat (Sans-serif)
*/

/* =============================================
   DESIGN TOKENS
============================================= */
:root {
    --bg-blush:    #FDF5F6;
    --bg-pink:     #F2D5D9;
    --bg-pink-mid: #EDD5D8;
    --accent-dusty:#D6A2A8;
    --accent-rose: #B76E79;
    --text-dark:   #4A3B3D;
    --text-brown:  #4A3B3D;
    --text-muted:  #888888;
    --white:       #FFFFFF;
    --btn-accent:  #B76E79;
    --trustpilot:  #00B67A;
    --serif:       'Playfair Display', Georgia, serif;
    --sans:        'Montserrat', Arial, sans-serif;
    --radius-sm:   12px;
    --radius-md:   20px;
    --radius-lg:   30px;
    --shadow:      0 15px 35px rgba(183, 110, 121, 0.15);
    --shadow-lg:   0 20px 60px rgba(183, 110, 121, 0.20);
    --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--sans);
    background-color: var(--bg-blush);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

a { text-decoration: none; color: inherit; }

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3 {
    font-family: var(--serif);
    color: var(--text-brown);
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.hero__content h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text-brown);
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 56px);
    letter-spacing: 0.03em;
}

/* =============================================
   LAYOUT HELPERS
============================================= */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section         { padding: clamp(40px, 8vw, 80px) 0; }
.section--white  { background-color: var(--white); }
.section--blush  { background-color: var(--bg-blush); }

.btn-center { display: block; width: fit-content; margin: 0 auto; }

/* =============================================
   BUTTON
============================================= */
.btn {
    display: inline-block;
    padding: 13px 32px;
    background-color: var(--btn-accent);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: all 0.4s var(--ease-out);
}

.btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.see-more-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 36px;
    background: var(--btn-dark);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9rem;
}

/* =============================================
   HEADER & NAVIGATION (Glassmorphism)
============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(253, 245, 246, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(183, 110, 121, 0.08);
    transition: all 0.4s var(--ease-in-out);
}

.header--scrolled {
    background: rgba(253, 245, 246, 0.95);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(183, 110, 121, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-brown);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dark);
    position: relative;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-dusty);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

/* --- Mobile Menu Toggle Button --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-brown);
    font-size: 1.5rem;
    cursor: none; /* Follows custom cursor */
    z-index: 1001;
    padding: 8px;
    transition: transform 0.3s ease;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

/* =============================================
   SCROLL PROGRESS BAR
============================================= */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1100;
}

.progress-bar {
    height: 100%;
    background: var(--accent-dusty);
    width: 0%;
    transition: width 0.1s linear;
}

/* =============================================
   REVEAL ANIMATION
============================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.reveal--active {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   CUSTOM CURSOR — Dual Layer
============================================= */

/* Ẩn con trỏ mặc định trên toàn trang */
*, *::before, *::after { cursor: none !important; }

/* --- Dot nhỏ — bám chính xác vào chuột --- */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-rose);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.15s ease, height 0.15s ease, opacity 0.3s ease,
                background 0.2s ease;
    will-change: transform, left, top;
}

/* --- Ring lớn — lag follower --- */
.custom-cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(183, 110, 121, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out),
                height 0.4s var(--ease-out),
                border-color 0.3s ease,
                opacity 0.3s ease;
    will-change: transform, left, top;
}

/* --- Trạng thái hover: dot biến mất, ring phình to --- */
.custom-cursor--hover {
    width: 0;
    height: 0;
    opacity: 0;
}

.custom-cursor-ring--hover {
    width: 56px;
    height: 56px;
    border-color: var(--accent-rose);
    background: rgba(183, 110, 121, 0.06);
}

/* --- Trạng thái click: nảy nhỏ lại --- */
.custom-cursor-ring--click {
    width: 24px;
    height: 24px;
    border-color: var(--accent-rose);
    transition: width 0.1s ease, height 0.1s ease;
}

/* --- Ẩn khi chuột ra ngoài window --- */
.custom-cursor--hidden,
.custom-cursor-ring--hidden {
    opacity: 0;
}

/* =============================================
   SPEECH BUBBLE
============================================= */
.bubble {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 28px 28px 52px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.bubble::before {
    content: '\201C';
    font-family: var(--serif);
    font-size: 4rem;
    color: #D5C0C2;
    position: absolute;
    top: 10px;
    left: 14px;
    line-height: 1;
}

.bubble p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-brown);
    line-height: 1.7;
}

/* Tail pointing down-left */
.bubble::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 36px;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 0px solid transparent;
    border-top: 18px solid var(--white);
}

/* =============================================
   PRODUCT CARD
============================================= */
.product-card {
    background-color: var(--bg-pink);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.product-card:hover { transform: translateY(-6px); }

.product-card img {
    width: 100%;
    object-fit: contain;
}

.product-card--labeled {
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.product-card--labeled span {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-brown);
}

/* 4-column product grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 64px;
}

.grid-4 .product-card { min-height: 180px; }

/* Mini cards (2-col inside split) */
.mini-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
    margin-bottom: 28px;
}

/* =============================================
   SPLIT LAYOUT (shared)
============================================= */
.split {
    display: grid;
    gap: 56px;
    align-items: flex-start;
}

.split--img-left  { grid-template-columns: 1.1fr 1fr; }
.split--img-right { grid-template-columns: 1fr 1.1fr; }

.split__image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.split__content { display: flex; flex-direction: column; justify-content: center; }

.product-row-intro {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* =============================================
   SECTION 1 – HERO
============================================= */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-blush);
    align-items: stretch;
}

.hero__image { overflow: hidden; }

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px 60px 48px;
}

.hero__content h1 {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    margin-bottom: 20px;
}

.hero__content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* =============================================
   SECTION 2 – MAIN QUOTE
============================================= */
.main-quote { background-color: var(--white); }

.main-quote__text {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: #555;
    line-height: 1.9;
}

/* =============================================
   SECTION 3 – PROMO BANNER
============================================= */
.promo {
    background-color: var(--accent-dusty);
    text-align: center;
    padding: 64px 24px;
}

.promo h2 {
    font-family: var(--sans);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.promo p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.promo .btn {
    background-color: var(--btn-dark);
    font-size: 1.3rem;
    padding: 18px 56px;
    border-radius: var(--radius-md);
}

.promo .btn strong { font-weight: 700; }

/* =============================================
   SECTION 4 – FOR HER DAILY GRACE
============================================= */
.daily-grace { background-color: var(--white); }

/* =============================================
   SECTION 6 – FOR HER SUNDAY BEST
============================================= */
.sunday-best { background-color: var(--bg-blush); }

.sunday-best .split__content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* =============================================
   SECTION 7 – FOR THE STEPS SHE TAKES
============================================= */
.steps-section { background-color: var(--white); }

.steps-section .split__content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 28px;
}

.steps-section .btn-center { margin: 0 auto; }

/* =============================================
   SECTION 8 – SMALL GESTURES
============================================= */
.gestures { background-color: var(--bg-blush); }

.gestures__intro {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: -36px auto 48px;
}

.gestures-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    min-height: 480px;
}

.gest-item {
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gest-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 220px;
}

/* Large item spans 2 rows */
.gest-item--large {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding: 40px 32px;
}

.gest-item--large img {
    max-height: 340px;
    object-fit: contain;
}

/* =============================================
   SECTION 9 – NEWSLETTER
============================================= */
.newsletter {
    background-color: var(--white);
    text-align: center;
}

.newsletter h3 {
    font-family: var(--sans);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
    color: #cc2222;
    margin-bottom: 32px;
}

.subscribe-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    border-bottom: 2px solid var(--text-dark);
}

.subscribe-form input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
    outline: none;
}

.subscribe-form input::placeholder { color: #aaa; }

.subscribe-form button {
    border: none;
    background: var(--btn-dark);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0 28px;
    cursor: pointer;
    transition: opacity 0.25s;
}

.subscribe-form button:hover { opacity: 0.8; }

/* =============================================
   SECTION 10 – TRUST BAR
============================================= */
.trust-bar {
    background-color: var(--bg-blush);
    border-top:    1px solid #EDD5D8;
    border-bottom: 1px solid #EDD5D8;
}

.trust-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.trust-item i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.trust-item h4 {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.trust-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================
   SECTION 11 – REVIEWS WIDGET
============================================= */
.reviews { background-color: var(--white); }

.review-panel {
    max-width: 780px;
    margin: 0 auto;
}

.review-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.review-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.review-brand__logo {
    width: 52px;
    height: 52px;
    background: #c0392b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-brand__logo svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.review-brand__name {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.review-brand__sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stars-tp {
    color: var(--trustpilot);
    font-size: 0.85rem;
}

.review-score-big { text-align: right; }

.review-score-big__num {
    font-family: var(--sans);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.review-score-big__stars { color: var(--trustpilot); font-size: 1rem; }

.review-score-big__link {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: underline;
    display: block;
    margin-top: 4px;
}

/* Rating bars */
.rating-bars { width: 180px; }

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    margin-bottom: 3px;
}

.rating-bar-row span:first-child { width: 14px; text-align: right; }

.bar-track {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--trustpilot);
    border-radius: 3px;
}

.review-panel__divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 16px 0 20px;
}

.review-panel__grateful {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 28px;
}

/* Reviewer cards */
.reviewer-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.reviewer-card {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.reviewer-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    flex-shrink: 0;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.reviewer-date { font-size: 0.75rem; color: #aaa; }

.reviewer-card p {
    line-height: 1.5;
    font-size: 0.8rem;
}

.reviewer-card__title {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.reviewer-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
}

.dot--active { background: var(--text-dark); }

/* =============================================
   RESPONSIVE & MEDIA QUERIES
============================================= */

/* Desktop & Large Tablet */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 280px;
        height: 100vh;
        background: var(--bg-blush);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        box-shadow: -10px 0 30px rgba(183, 110, 121, 0.1);
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero__content {
        padding: 40px 24px;
        text-align: center;
    }

    .hero__image {
        height: 400px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .split--img-left,
    .split--img-right {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .split--img-right .split__content {
        order: 2;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviewer-row {
        grid-template-columns: 1fr;
    }
    
    .promo h2 {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .mini-cards {
        grid-template-columns: 1fr;
    }

    .gestures-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gest-item--large {
        grid-column: 1;
        grid-row: auto;
    }

    .promo .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .trust-bar .container {
        grid-template-columns: 1fr;
    }

    .review-panel__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .review-score-big {
        text-align: left;
    }
}
