/* ============================================================================
   Veras Homepage — 2026 Figma flow
   Enqueued after style.css on the front page only (functions.php).
   Every rule is scoped to .home so no other page is affected.
   ========================================================================== */

/* ─── Hero: product trio + light diagonal wedge ─────────────────────────── */
.home .hero-section {
    height: clamp(440px, 43vw, 820px);
    min-height: 0;
}
.home .hero-section .veras-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    align-items: center;
    max-width: none;
    padding-inline: clamp(32px, 6.7vw, 86px);
}
.home .hero-content {
    max-width: none;
    min-width: 0;
    padding: 0;
    transform: translateY(-16px);
}
.home .hero-title {
    max-width: 900px;
    margin-bottom: 24px;
    color: var(--v-champagne);
    font-family: var(--font-ui);
    font-size: clamp(44px, 4.4vw, 86px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
}
.home .hero-title em {
    color: inherit;
    font-style: normal;
}
.home .hero-subtitle {
    max-width: 700px;
    color: var(--v-text);
    font-size: clamp(16px, 1.55vw, 30px);
    line-height: 1.45;
}
.home .hero-actions {
    margin-bottom: 20px;
}
.home .hero-actions .btn-champagne,
.home .hero-actions .btn-outline {
    padding: 13px 34px !important;
    font-size: clamp(10px, .85vw, 16px) !important;
}
.home .hero-ruo {
    max-width: 680px;
    font-size: clamp(9px, .72vw, 14px);
    line-height: 1.45;
}

/* light diagonal wedge behind the vials */
.home .hero-wedge {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #FFFFFF;
    clip-path: polygon(0 100%, 100% 49.4%, 100% 100%);
    pointer-events: none;
}
.home .hero-visual {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-40px, -28px);
}
.home .hero-visual img {
    width: min(960px, 70vw);
    max-width: none;
    flex: 0 0 auto;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 34px 46px rgba(0,0,0,0.6));
}
@media (max-width: 900px) {
    .home .hero-section { height: auto; min-height: 0; padding: 64px 0 48px; }
    .home .hero-section .veras-container {
        display: flex;
        flex-direction: column;
    }
    .home .hero-wedge { display: none; }
    /* let hero-content's children participate directly in the flex column
       so the vials image can sit above the buttons on mobile */
    .home .hero-content { display: contents; transform: none; }
    /* children lose hero-content's stacking context under display:contents,
       so re-assert position/z-index to keep them above the overlay */
    .home .hero-eyebrow,
    .home .hero-title,
    .home .hero-subtitle,
    .home .hero-actions,
    .home .hero-ruo { position: relative; z-index: 2; }
    .home .hero-eyebrow { order: 1; }
    .home .hero-title   { order: 2; }
    .home .hero-subtitle{ order: 3; }
    .home .hero-visual  { order: 4; margin: 24px 0; transform: none; }
    .home .hero-actions {
        order: 5;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .home .hero-actions .btn-champagne,
    .home .hero-actions .btn-outline {
        width: 100%;
        text-align: center;
    }
    .home .hero-ruo     { order: 6; }
    .home .hero-visual img { width: min(520px, 100%); }
}

/* ─── Trust grid (dark, 3×2, champagne icons) ───────────────────────────── */
.home .home-trust-section {
    background: #0B0C0E;
    padding: clamp(64px, 6vw, 112px) 0;
}
.home .home-trust-section .veras-container {
    max-width: none;
    padding-inline: clamp(48px, 7vw, 134px);
}
.home .home-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(56px, 5vw, 96px) clamp(40px, 6vw, 116px);
}
.home .home-trust-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(18px, 1.6vw, 30px);
}
.home .home-trust-icon {
    color: var(--v-champagne);
    flex-shrink: 0;
    margin-top: 2px;
}
.home .home-trust-icon svg {
    width: clamp(36px, 2.5vw, 48px);
    height: clamp(36px, 2.5vw, 48px);
}
.home .home-trust-copy h3 {
    font-family: var(--font-ui);
    font-size: clamp(16px, 1.25vw, 24px);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v-champagne);
    margin-bottom: 10px;
    line-height: 1.5;
}
.home .home-trust-copy p {
    font-family: var(--font-body);
    font-size: clamp(14px, .95vw, 18px);
    line-height: 1.65;
    color: rgba(232,232,228,0.85);
    max-width: 340px;
}
.home .home-trust-copy p.home-trust-sub {
    margin-top: -2px;
    font-size: clamp(15px, 1vw, 19px);
    color: var(--v-text);
}
.home .home-trust-copy a {
    color: var(--v-teal-light);
    text-decoration: none;
}
@media (max-width: 900px) {
    .home .home-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}
@media (max-width: 560px) {
    .home .home-trust-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Peptide Compounds catalog (white, minimal cards) ──────────────────── */
.home .home-catalog-section {
    background: #FFFFFF;
    padding: clamp(64px, 5vw, 96px) 0 clamp(90px, 7vw, 134px);
}
.home .home-catalog-section .veras-container {
    max-width: none;
    padding-left: clamp(48px, 6.7vw, 128px);
    padding-right: clamp(64px, 9vw, 172px);
}
.home .home-catalog-title {
    text-align: center;
    font-family: var(--font-ui);
    font-size: clamp(28px, 2.7vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1A1B1E;
    margin-bottom: 40px;
}
.home .home-catalog-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.home .home-catalog-count {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.15vw, 22px);
    color: rgba(26,27,30,0.75);
}
.home .home-catalog-sort {
    font-family: var(--font-body);
    font-size: clamp(12px, 1vw, 19px);
    color: rgba(26,27,30,0.85);
    background: #FFFFFF;
    border: 1px solid rgba(26,27,30,0.22);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}
.home .home-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(72px, 6vw, 116px) clamp(40px, 5vw, 96px);
    align-items: start;
    justify-items: center;
}
@media (max-width: 900px) {
    .home .home-catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .home .home-catalog-grid .home-product-img { width: min(420px, 60vw); }
}
@media (max-width: 560px) {
    /* Two-up on phones. Card internals scale down so both columns fit
       without the vial art or the product name forcing an overflow. */
    .home .home-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 14px;
    }
    .home .home-catalog-grid .home-product-img { width: min(200px, 38vw); }
    .home .home-catalog-grid .home-product-card { padding: 20px 8px 18px; }
    .home .home-catalog-grid .home-product-name {
        font-size: 14px;
        margin-top: 14px;
        min-height: 54px;
    }
    .home .home-catalog-grid .home-product-price { font-size: 16px; }
}

/* Minimal product card (shared by catalog + related grids) */
.home .home-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 28px 20px 24px;
    border-radius: 14px;
    border: 1px solid transparent;
    background-color: transparent;
    overflow: hidden;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.home .home-product-card:hover {
    background-color: #ffffff;
    border-color: var(--v-champagne);
    box-shadow: 0 20px 44px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}
.home .home-product-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(115deg, transparent 15%, rgba(197,168,128,0.5) 50%, transparent 85%);
    pointer-events: none;
    z-index: 3;
}
.home .home-product-card:hover::after {
    animation: veras-card-shine 0.9s ease forwards;
}
@keyframes veras-card-shine {
    from { left: -60%; }
    to   { left: 130%; }
}
.home .home-product-img {
    position: relative;
    display: block;
    width: min(500px, 26vw);
    max-width: 100%;
}
.home .home-product-img img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 22px rgba(0,0,0,0.18));
}
.home .home-product-ruo {
    position: absolute;
    top: 4px;
    left: -6px;
    z-index: 2;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    background: var(--v-teal-light);
    border-radius: 3px;
    padding: 4px 8px;
}
.home .home-product-name {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: clamp(16px, 1.35vw, 26px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1A1B1E;
    text-decoration: none;
    margin-top: 20px;
    line-height: 1.35;
    max-width: 360px;
    min-height: 72px;
}
.home .home-product-name:hover { opacity: 0.75; }
.home .home-product-price {
    font-family: var(--font-ui);
    font-size: clamp(18px, 1.55vw, 30px);
    font-weight: 700;
    color: var(--v-champagne);
    margin-top: 8px;
}
.home .home-product-price .woocommerce-Price-amount {
    color: var(--v-champagne) !important;
}
.home .home-product-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: clamp(8px, .65vw, 12px);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--v-teal-light);
    border-radius: 10px;
    padding: 4px 12px;
    margin-top: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.home .home-product-tag:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.home .veras-search-hidden { display: none !important; }

/* ─── Glow showcase (dark molecular bg, shield cards) ───────────────────── */
.home .home-glow-section {
    position: relative;
    padding: 72px 0 64px;
    overflow: hidden;
}
.home .home-glow-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.home .home-glow-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,5,5,0.45);
}
.home .home-glow-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    justify-items: center;
}
.home .home-glow-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    width: 100%;
    max-width: 300px;
}
.home .home-spec-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 390px;
    border-radius: 44px 44px 130px 130px;
    overflow: hidden;
    border: 2px solid rgba(197,168,128,0.75);
    outline: 2px solid rgba(197,168,128,0.75);
    outline-offset: 4px;
    background: #0A0A0A;
}
.home .home-spec-card--teal {
    border-color: rgba(58,122,131,0.85);
    outline-color: rgba(58,122,131,0.85);
}
.home .home-spec-card-head {
    font-family: var(--font-display);
    font-size: 23px;
    color: #1A1B1E;
    padding: 18px 28px 26px;
    background: linear-gradient(160deg, #D9BE93 0%, #C5A880 55%, #A98D62 100%);
}
.home .home-spec-card--teal .home-spec-card-head {
    background: linear-gradient(160deg, #4E8891 0%, #3A7A83 55%, #2A5C63 100%);
    color: #F4F4F0;
}
.home .home-spec-card-head span {
    font-family: var(--font-ui);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-left: 6px;
}
.home .home-spec-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 24px 36px;
}
.home .home-spec-card-name {
    font-family: var(--font-ui);
    font-size: 19px;
    font-weight: 600;
    color: #F4F4F0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    margin-bottom: 14px;
}
.home .home-spec-compound .home-spec-card-name {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 4px;
}
.home .home-spec-compound { margin-bottom: 14px; }
.home .home-spec-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: rgba(232,232,228,0.85);
    text-transform: uppercase;
}
.home .home-spec-rows sub { text-transform: none; }
.home .home-spec-rows--inline {
    font-size: 10.5px;
    text-transform: none;
    color: rgba(232,232,228,0.7);
    overflow-wrap: anywhere;
}
.home .home-spec-chip {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #DCE9EB;
    background: rgba(58,122,131,0.35);
    border-radius: 10px;
    padding: 4px 12px;
    margin: 4px 0 10px;
}
.home .home-spec-purity {
    text-align: center;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--v-champagne);
    margin-top: auto;
    padding-top: 18px;
}
.home .home-spec-purity--teal { color: var(--v-teal-light); }
.home .home-glow-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 14px 40px;
    border-radius: 28px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    text-decoration: none;
    background: #C5A880;
    color: #1A1B1E;
}
.home .home-glow-pill--teal {
    background: #4E8891;
    color: #F4F4F0;
}
.home .home-glow-pill:hover { opacity: 0.88; }
@media (max-width: 800px) {
    .home .home-glow-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ─── Highest Quality + Related Products (light molecular) ──────────────── */
.home .home-quality-section {
    position: relative;
    background: #FFFFFF;
    padding: 72px 0 64px;
    overflow: hidden;
}
.home .home-quality-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.22;
}
.home .home-quality-inner {
    position: relative;
    z-index: 2;
}
.home .home-quality-header {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 32px;
    align-items: start;
    margin-bottom: 72px;
}
.home .home-quality-copy h2 {
    font-family: var(--font-ui);
    font-size: clamp(38px, 4.8vw, 60px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: #1A1B1E;
    margin-bottom: 24px;
}
.home .home-quality-copy p {
    font-family: var(--font-body);
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.75;
    color: rgba(26,27,30,0.7);
    max-width: 520px;
}
.home .home-quality-cta {
    justify-self: end;
    padding: 15px 36px !important;
    font-size: 13px !important;
}
.home .home-related-title {
    text-align: center;
    font-family: var(--font-ui);
    font-size: clamp(25px, 2.7vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1A1B1E;
    margin-bottom: 48px;
}
.home .home-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
}
.home .home-related-grid .home-product-img { width: min(220px, 100%); }
.home .home-related-grid .home-product-name { font-size: 18px; }
.home .home-related-grid .home-product-price { font-size: 20px; }
@media (max-width: 900px) {
    .home .home-related-grid { grid-template-columns: repeat(2, 1fr); }
    .home .home-quality-header { grid-template-columns: 1fr; }
    .home .home-quality-cta { justify-self: start; }
}
@media (max-width: 560px) {
    .home .home-related-grid { grid-template-columns: 1fr; }
}

/* ─── Documentation banner (dark, centered) ─────────────────────────────── */
.home .home-doc-section {
    position: relative;
    padding: 88px 0;
    overflow: hidden;
}
.home .home-doc-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.home .home-doc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,5,5,0.55);
}
.home .home-doc-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.home .home-doc-eyebrow {
    font-family: var(--font-body);
    font-size: 14px;
    color: #F4F4F0;
    margin-bottom: 14px;
}
.home .home-doc-title {
    font-family: var(--font-ui);
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--v-champagne);
    margin-bottom: 20px;
}
.home .home-doc-copy {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.7;
    color: #F4F4F0;
    max-width: 760px;
    margin-bottom: 32px;
}
.home .home-doc-cta {
    border-radius: 20px !important;
    padding: 11px 32px !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    text-transform: capitalize !important;
}

/* ─── Newsletter (white panel above footer) ─────────────────────────────── */
.home .home-newsletter-section {
    background: #FFFFFF;
    padding: 88px 0;
}
.home .home-newsletter-grid {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    max-width: 760px;
}
.home .home-newsletter-label {
    display: flex;
    justify-content: flex-end;
    border-right: 3px solid var(--v-champagne);
    padding-right: 24px;
    padding-top: 8px;
    min-height: 88px;
}
.home .home-newsletter-label span {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1A1B1E;
    text-align: left;
    max-width: 140px;
    line-height: 1.7;
}
.home .home-newsletter-main h2 {
    font-family: var(--font-ui);
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #1A1B1E;
    margin-bottom: 32px;
}
.home .home-newsletter-form {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}
.home .home-newsletter-input {
    flex: 1 1 220px;
    max-width: 300px;
    font-family: var(--font-body);
    font-size: 12px;
    color: #1A1B1E;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(26,27,30,0.4);
    padding: 8px 2px;
    outline: none;
}
.home .home-newsletter-input::placeholder { color: var(--v-champagne); }
.home .home-newsletter-btn {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--v-champagne);
    border: none;
    border-radius: 16px;
    padding: 9px 26px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.home .home-newsletter-btn:hover { opacity: 0.85; }
.home .home-newsletter-btn:disabled { opacity: 0.6; cursor: wait; }
.home .home-newsletter-status {
    font-family: var(--font-body);
    font-size: 12px;
    margin-top: 14px;
    color: rgba(26,27,30,0.7);
    min-height: 16px;
}
.home .home-newsletter-status.is-error { color: #B0413E; }
.home .home-newsletter-status.is-success { color: var(--v-teal); }
@media (max-width: 700px) {
    .home .home-newsletter-grid { grid-template-columns: 1fr; gap: 24px; }
    .home .home-newsletter-label {
        justify-content: flex-start;
        border-right: none;
        border-left: 3px solid var(--v-champagne);
        padding-left: 24px;
        padding-right: 0;
        min-height: 0;
    }
}
