/* ==========================================================================
   Tsilivi Jewels – marketing page system (DESIGN.md §3, PLAN.md §3 "Pages")
   Shared by About, Contact, FAQ, For Retailers, Partner and the policy /
   account stub pages. Loaded via @section pagecss BEFORE the page file, so a
   page stylesheet only carries its own layout.

   Contents
     1. Page frame (gutter / column width)
     2. Breadcrumb
     3. Hero (plum gradient + rings, gold eyebrow, serif heading)
     4. Hero aside box (Contact hours, FAQ count)
     5. Section label / title / body text
     6. Two-column page body (Contact, Partner, FAQ)
     7. Dark form card (Contact, Partner)
     8. Closing call-to-action block + buttons row
     9. Reveal delays
    10. Stub pages (policies, My Account, Partnership KYC)
   ========================================================================== */


/* 1. Page frame ============================================================
   Scoped custom properties (not a :root – tokens.css stays the only one).
   --mkt-max is the content column every block aligns to. */

body {
    --mkt-gutter: var(--space-7);
    --mkt-max: 1160px;
}

@media (max-width: 991.98px) {
    body {
        --mkt-gutter: var(--space-6);
    }
}

@media (max-width: 767.98px) {
    body {
        --mkt-gutter: var(--space-5);
    }
}


/* 2. Breadcrumb ============================================================
   Plain-text variant of components.css §4: `Home <span>›</span> Page`. */

.breadcrumb {
    max-width: calc(var(--mkt-max) + 2 * var(--mkt-gutter));
    margin: 0 auto;
    padding: var(--space-4) var(--mkt-gutter);
    letter-spacing: .04em;
}

    .breadcrumb > span {
        margin: 0 var(--space-2);
        color: var(--line-strong);
    }


/* 3. Hero ================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 96px) var(--mkt-gutter) clamp(56px, 7vw, 88px);
    background: var(--brand-plum);
    color: var(--text-on-dark);
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 55% 65% at 88% 35%, rgba(201, 169, 110, .12) 0%, transparent 65%), radial-gradient(ellipse 40% 55% at 8% 85%, rgba(255, 255, 255, .03) 0%, transparent 58%);
    }

.hero-ring {
    position: absolute;
    border: 1px solid rgba(227, 223, 220, .07);
    border-radius: 50%;
    pointer-events: none;
}

.hero-ring-1 {
    width: 480px;
    height: 480px;
    top: -180px;
    right: -110px;
}

.hero-ring-2 {
    width: 270px;
    height: 270px;
    top: -55px;
    right: 25px;
}

.hero-ring-3 {
    width: 600px;
    height: 600px;
    bottom: -310px;
    left: -190px;
    border-color: rgba(201, 169, 110, .05);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--mkt-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-7) var(--space-8);
    align-items: end;
}

.hero-eyebrow {
    margin-bottom: var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--brand-gold);
}

.hero-heading {
    margin-bottom: 0;
    font-family: var(--font-serif);
    font-size: var(--fs-hero);
    font-weight: var(--fw-regular);
    line-height: 1.08;
    letter-spacing: -.01em;
    color: var(--surface-sand);
}

    .hero-heading em {
        font-style: italic;
        color: var(--brand-gold-light);
    }

.hero-sub {
    max-width: 560px;
    margin: var(--space-5) 0 0;
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    font-style: italic;
    line-height: 1.6;
    color: var(--text-on-dark-muted);
}

@media (max-width: 991.98px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .hero-sub {
        font-size: var(--fs-md);
    }
}


/* 4. Hero aside box (Contact business hours, FAQ question count) ========== */

.hero-hours,
.hero-count {
    flex-shrink: 0;
    min-width: 200px;
    padding: var(--space-6) var(--space-6);
    text-align: center;
    border: 1px solid rgba(201, 169, 110, .3);
}

.hero-hours-divider,
.hero-count-divider {
    width: 24px;
    height: 1px;
    margin: var(--space-3) auto;
    background: var(--brand-gold);
}

.hero-hours-label,
.hero-hours-days,
.hero-count-label {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text-on-dark-muted);
}

.hero-hours-label,
.hero-count-label {
    font-weight: var(--fw-semibold);
    letter-spacing: .2em;
    text-transform: uppercase;
}

.hero-hours-label {
    margin-bottom: var(--space-3);
}

.hero-hours-time,
.hero-count-num {
    display: block;
    font-family: var(--font-serif);
    line-height: 1.25;
    color: var(--brand-gold-light);
}

.hero-hours-time {
    font-size: var(--fs-xl);
}

.hero-count-num {
    font-size: clamp(44px, 5vw, 60px);
    line-height: 1;
}

@media (max-width: 991.98px) {
    .hero-hours,
    .hero-count {
        justify-self: start;
    }
}


/* 5. Section label / title / body text ===================================== */

.section-label {
    margin-bottom: var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--brand-gold-deep);
}

/* --brand-gold-deep reads on cream/white; plum sections use the brand gold. */
.section-label--on-dark {
    color: var(--brand-gold);
}

/* .section-title base (serif, --fs-2xl, plum) lives in components.css §5. */
.section-title {
    margin-bottom: var(--space-6);
    letter-spacing: -.01em;
}

    .section-title em {
        font-style: italic;
    }

/* Section title on a plum section (About "Our Commitment", Retailers
   "What Tsilivi Partners Get"). */
.section-title-light {
    margin-bottom: 0;
    font-family: var(--font-serif);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-regular);
    line-height: var(--lh-tight);
    letter-spacing: -.01em;
    color: var(--surface-sand);
}

    .section-title-light em {
        font-style: italic;
        color: var(--brand-gold-light);
    }

.body-text {
    margin: 0;
    font-size: var(--fs-md);
    line-height: 1.85;
    color: var(--text);
}

    .body-text + .body-text {
        margin-top: var(--space-5);
    }

@media (max-width: 767.98px) {
    .body-text {
        font-size: var(--fs-base);
    }
}


/* 6. Two-column page body (Contact, Partner, FAQ) ========================= */

.page-body {
    max-width: calc(var(--mkt-max) + 2 * var(--mkt-gutter));
    margin: 0 auto;
    padding: var(--space-8) var(--mkt-gutter) var(--section-y);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
}

.left-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.form-col {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
}

@media (max-width: 991.98px) {
    .page-body {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-7);
        padding-top: var(--space-7);
    }

    .form-col {
        position: static;
    }
}


/* 7. Dark form card (Contact, Partner) =====================================
   The components.css §3 field contract (44px+, label above, focus ring,
   validation text) on a plum card: fields are translucent, focus is gold. */

.form-card {
    position: relative;
    overflow: hidden;
    padding: var(--space-7) var(--space-7);
    background: var(--brand-plum);
}

    .form-card::before,
    .form-card::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .form-card::before {
        bottom: -60px;
        right: -60px;
        width: 220px;
        height: 220px;
        border: 1px solid rgba(201, 169, 110, .1);
    }

    .form-card::after {
        top: -40px;
        right: -40px;
        width: 130px;
        height: 130px;
        border: 1px solid rgba(227, 223, 220, .06);
    }

    .form-card > * {
        position: relative;
        z-index: 1;
    }

.form-eyebrow {
    margin-bottom: var(--space-3);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--brand-gold);
}

.form-title {
    margin-bottom: var(--space-6);
    font-family: var(--font-serif);
    font-size: clamp(28px, 2.5vw, 36px);
    font-weight: var(--fw-regular);
    line-height: 1.15;
    color: var(--surface-sand);
}

    .form-title em {
        font-style: italic;
        color: var(--brand-gold-light);
    }

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

    .form-row.full {
        grid-template-columns: minmax(0, 1fr);
    }

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-card .form-label {
    margin-bottom: 0;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
}

.form-card .form-input,
.form-card .form-select,
.form-card .form-textarea {
    width: 100%;
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    color: var(--surface-sand);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(227, 223, 220, .22);
    border-radius: var(--radius-0);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-card .form-textarea {
    min-height: 110px;
    line-height: 1.6;
    resize: vertical;
}

    .form-card .form-input::placeholder,
    .form-card .form-textarea::placeholder {
        color: rgba(227, 223, 220, .4);
    }

    .form-card .form-input:focus,
    .form-card .form-select:focus,
    .form-card .form-textarea:focus {
        color: var(--surface-sand);
        background: rgba(255, 255, 255, .1);
        border-color: var(--brand-gold);
        box-shadow: var(--ring);
    }

    .form-card .form-input.input-validation-error {
        border-color: var(--danger-bg);
    }

.form-card .form-select option {
    color: var(--surface-sand);
    background: var(--brand-plum-deep);
}

/* Validation message (asp-validation-for). The danger red is unreadable on
   plum, so the pale danger tint is used as the text colour here. */
.form-error {
    font-size: var(--fs-xs);
    line-height: 1.4;
    color: var(--danger-bg);
}

    .form-error:empty {
        display: none;
    }

.btn-submit {
    width: 100%;
    margin-top: var(--space-5);
    white-space: normal;
}

.form-terms {
    margin: var(--space-3) 0 0;
    font-size: var(--fs-xs);
    text-align: center;
    color: var(--text-on-dark-muted);
}

.form-note {
    margin: var(--space-4) 0 0;
    font-size: var(--fs-sm);
    line-height: 1.7;
    text-align: center;
    color: var(--text-on-dark-muted);
}

    .form-note strong {
        font-weight: var(--fw-medium);
        color: var(--surface-sand);
    }

    .form-note a {
        font-weight: var(--fw-medium);
        color: var(--brand-gold);
    }

        .form-note a:hover {
            color: var(--brand-gold-light);
            text-decoration: underline;
        }

/* Success state – hidden until the page script sets display:block inline. */
.form-success {
    display: none;
    padding: var(--space-6) 0 var(--space-3);
    text-align: center;
}

.form-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto var(--space-5);
    color: var(--brand-gold);
    border: 1.5px solid var(--brand-gold);
}

.form-success-title {
    margin-bottom: var(--space-2);
    font-family: var(--font-serif);
    font-size: var(--fs-xl);
    color: var(--surface-sand);
}

.form-success-text {
    margin: 0;
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--text-on-dark-muted);
}

@media (max-width: 767.98px) {
    .form-card {
        padding: var(--space-6) var(--space-5);
    }
}

@media (max-width: 575.98px) {
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* 8. Closing call-to-action block (About, For Retailers) ==================
   Buttons are components.css .btn / .btn-outline-brand. */

.cta-section {
    padding: var(--section-y) var(--mkt-gutter);
    text-align: center;
    background: var(--surface-cream);
    border-top: 1px solid var(--line);
}

.cta-inner {
    max-width: 760px;
    margin: 0 auto;
}

.cta-eyebrow {
    margin-bottom: var(--space-5);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--brand-gold-deep);
}

.cta-title {
    margin-bottom: var(--space-5);
    font-family: var(--font-serif);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-regular);
    line-height: 1.1;
    color: var(--brand-plum);
}

    .cta-title em {
        font-style: italic;
    }

.cta-rule {
    width: 48px;
    height: 1px;
    margin: 0 auto 28px;
    background: var(--brand-gold);
}

.cta-sub {
    margin: 0 0 40px;
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--text-muted);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

@media (max-width: 575.98px) {
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

        .cta-buttons .btn {
            white-space: normal;
        }
}


/* 9. Reveal delays ==========================================================
   The reveal itself is components.css §13 (gated on html.js-reveal). Its
   `transition` shorthand would reset a lower-specificity delay, hence the
   html.js-reveal prefix. Both naming schemes are in use. */

html.js-reveal .reveal.reveal-delay-1,
html.js-reveal .reveal.reveal-d1 {
    transition-delay: .1s;
}

html.js-reveal .reveal.reveal-delay-2,
html.js-reveal .reveal.reveal-d2 {
    transition-delay: .2s;
}

html.js-reveal .reveal.reveal-delay-3,
html.js-reveal .reveal.reveal-d3 {
    transition-delay: .3s;
}


/* 10. Stub pages (policies, My Account, Partnership KYC) =================== */

.hero--compact {
    padding-block: clamp(48px, 6vw, 72px);
}

.page-body--prose {
    display: block;
    max-width: calc(760px + 2 * var(--mkt-gutter));
    min-height: 240px;
}

.page-placeholder {
    margin: 0;
    color: var(--text-muted);
}
