/*
Theme Name:        Layerly Base
Theme URI:         https://layerly.io
Author:            Layerly
Author URI:        https://layerly.io
Description:       Layerly Base Theme — the v1.0 reference implementation of the Layerly Conventions Framework. Fork this theme per client; do not edit in place. Requires the Layerly Bridge plugin for runtime helpers and admin chat.
Version:           1.0.0
Requires at least: 6.0
Requires PHP:      8.0
Layerly Bridge:    >=4.7.0
Layerly Conventions: v1.0
Text Domain:       layerly-base
License:           Proprietary
Tags:              layerly, layerly-v1
*/

/* ════════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS — numbered (variable per site) + functional aliases.
   Override values per site. Add --color-N or --font-N as the design needs.
   ════════════════════════════════════════════════════════════════════ */
:root {
    /* Numbered colors — count varies per site. Document in LAYERLY.md. */
    --color-1: #6366F1;   /* Default brand primary (override per site) */
    --color-2: #1E293B;   /* Default brand secondary */
    --color-3: #F8FAFC;   /* Default page background */
    --color-4: #FFFFFF;   /* Default surface */
    --color-5: rgba(0,0,0,.08);
    --color-6: #0EA5E9;   /* Default brand accent */
    --color-7: #FACC15;   /* Default brand highlight */

    /* Functional color aliases — fixed vocabulary, mapped per site. */
    --color-primary:    var(--color-1);
    --color-text:       var(--color-2);
    --color-text-muted: rgba(30,41,59,.65);
    --color-bg:         var(--color-3);
    --color-surface:    var(--color-4);
    --color-border:     var(--color-5);
    --color-success:    #059669;
    --color-error:      #DC2626;
    --color-warning:    #F59E0B;
    --color-accent:     var(--color-6);
    --color-highlight:  var(--color-7);

    /* Numbered fonts — add --font-N as needed. */
    --font-1: system-ui, -apple-system, sans-serif;
    --font-2: system-ui, -apple-system, sans-serif;
    --font-3: system-ui, -apple-system, sans-serif;   /* subheading / accent */

    /* Functional font aliases — fixed vocabulary. */
    --font-display:    var(--font-1);
    --font-subheading: var(--font-3);
    --font-body:       var(--font-2);

    /* Spacing scale — t-shirt sized, 8-pt grid. */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    /* xl/xxl are the block + SECTION spacing — fluid so sections aren't 80/120px tall on a
       phone (the recurring "super tall section" bug). clamp max = the old fixed value, so
       desktop is unchanged; it scales down toward the min on small screens. */
    --space-xl:  clamp(28px, 4vw, 40px);
    --space-xxl: clamp(48px, 7vw, 80px);

    /* Type scale — t-shirt sized. */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 20px;
    --text-xl: 28px;
    /* Headings scale FLUIDLY (clamp max = the old fixed value, so desktop is unchanged) —
       replaces the hard 768px breakpoint below, which no longer jumps at one width. */
    --text-h3: clamp(22px, 3vw, 32px);
    --text-h2: clamp(30px, 4vw, 44px);
    --text-h1: clamp(38px, 5.5vw, 64px);

    /* Font weights — t-shirt sized. */
    --weight-reg:  400;
    --weight-med:  500;
    --weight-bold: 700;

    /* Radii. */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-full: 9999px;

    /* Shadows. */
    --sh-sm: 0 1px 2px rgba(0,0,0,.08);
    --sh-md: 0 4px 12px rgba(0,0,0,.12);
    --sh-lg: 0 12px 32px rgba(0,0,0,.18);

    /* Layout. */
    --container-max: 1200px;

    /* Breakpoints (reference only — used in @media). */
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
}

/* ════════════════════════════════════════════════════════════════════
   2. RESET + ROOT
   ════════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size:   var(--text-md);
    color:       var(--color-text);
    background:  var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img, picture, svg, video, canvas {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

p { margin: 0 0 var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ════════════════════════════════════════════════════════════════════
   3. TYPOGRAPHY
   ════════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    line-height: 1.15;
    margin: 0 0 var(--space-md);
    color: var(--color-text);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: var(--weight-med); }
h6 { font-size: var(--text-md); font-weight: var(--weight-med); text-transform: uppercase; letter-spacing: .05em; }

.eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

/* (Responsive type is now handled fluidly by the clamp() heading tokens in :root —
   no hard 768px breakpoint needed.) */

/* ════════════════════════════════════════════════════════════════════
   4. LAYOUT PRIMITIVES
   ════════════════════════════════════════════════════════════════════ */
.wrap {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

@media (min-width: 768px) {
    .wrap { padding-inline: var(--space-lg); }
}

/* Base section — every page section uses this anatomy.
   Sets up the position, background, overlay, decoration, divider hooks. */
.section {
    position: relative;
    padding-block: var(--space-xxl);
    overflow: hidden;  /* keep decorations/dividers contained */
}

/* Section background variants — emitted by layerly_section_classes() */
.section--bg-color {
    background-color: var(--section-bg-color, transparent);
}
.section--bg-image {
    background-image: var(--section-bg-image);
    background-size: cover;
    background-position: center;
}
.section--bg-gradient {
    background-image: var(--section-bg-gradient);
}

/* Color overlay on backgrounds (for legibility over images) */
.section--with-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--section-overlay-color, transparent);
    opacity: var(--section-overlay-opacity, 0);
    pointer-events: none;
    z-index: 1;
}
.section--with-overlay > * { position: relative; z-index: 2; }

/* Decoration slot — pseudo-element for background design accents */
.section--decorated::before {
    content: '';
    position: absolute;
    pointer-events: none;
    background-color: var(--decoration-color, var(--color-1));
    opacity: var(--decoration-opacity, .15);
    z-index: 0;
}
/* Default decoration: a circle */
.section--decorated::before {
    width: 240px;
    height: 240px;
    border-radius: 50%;
}
.section--decorated[style*="--decoration-size: sm"]::before { width: 120px; height: 120px; }
.section--decorated[style*="--decoration-size: md"]::before { width: 240px; height: 240px; }
.section--decorated[style*="--decoration-size: lg"]::before { width: 360px; height: 360px; }
.section--decorated[style*="--decoration-size: xl"]::before { width: 480px; height: 480px; }

.section--decorated[style*="--decoration-position: top-left"]::before     { top: -60px; left: -60px; }
.section--decorated[style*="--decoration-position: top-right"]::before    { top: -60px; right: -60px; }
.section--decorated[style*="--decoration-position: bottom-left"]::before  { bottom: -60px; left: -60px; }
.section--decorated[style*="--decoration-position: bottom-right"]::before { bottom: -60px; right: -60px; }
.section--decorated[style*="--decoration-position: center"]::before {
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}

/* Section dividers — emitted on the section element. SVGs live in assets/dividers/. */
.section[class*="section--divider-top-"] {
    /* Top divider rendered via ::before override below — sections with both
       a decoration AND a divider need careful ordering. v1 keeps it simple. */
}

/* Section header — used by every section that has a heading area */
.section-head {
    margin-bottom: var(--space-xl);
}
.section-head--center { text-align: center; }
.section-head--center .section-head__inner { max-width: 720px; margin-inline: auto; }

/* ════════════════════════════════════════════════════════════════════
   5. BUTTONS
   ════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-family: inherit;
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    line-height: 1;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--color-primary);
    color: var(--color-surface);
}
.btn--primary:hover { filter: brightness(.92); }

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-text); }

.btn--link {
    background: transparent;
    color: var(--color-primary);
    padding: 0;
    border: none;
}

/* ════════════════════════════════════════════════════════════════════
   6. SHAPE UTILITIES (used by layerly_image's `shape` arg)
   Each emits a `.shape-*` class.
   ════════════════════════════════════════════════════════════════════ */
.shape-square      { border-radius: 0; }
.shape-rounded-sm  { border-radius: var(--radius-sm); }
.shape-rounded-md  { border-radius: var(--radius-md); }
.shape-rounded-lg  { border-radius: var(--radius-lg); }
.shape-circle      { border-radius: 9999px; aspect-ratio: 1; object-fit: cover; }
.shape-arch        { border-radius: 9999px 9999px 0 0; }
.shape-tilt        { transform: rotate(-3deg); }
/* Custom shapes (e.g. blob, squiggle) — drop SVG into assets/shapes/ and
   add .shape-<name> using mask-image: url(/wp-content/themes/<slug>/assets/shapes/<name>.svg) */

/* ════════════════════════════════════════════════════════════════════
   7. ICONS
   ════════════════════════════════════════════════════════════════════ */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
    color: currentColor;
}
.icon svg { width: 100%; height: 100%; fill: currentColor; }
.icon--sm { font-size: var(--text-sm); }
.icon--md { font-size: var(--text-md); }
.icon--lg { font-size: var(--text-lg); }
.icon--xl { font-size: var(--text-xl); }
.icon--missing {
    width: 1em; height: 1em;
    background: var(--color-border);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* ════════════════════════════════════════════════════════════════════
   8. ACCESSIBILITY
   ════════════════════════════════════════════════════════════════════ */
.screen-reader-text,
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-text);
    color: var(--color-surface);
    padding: var(--space-sm) var(--space-md);
    z-index: 999999;
}
.skip-link:focus { left: var(--space-md); top: var(--space-md); }

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ════════════════════════════════════════════════════════════════════
   9. COMPONENT STYLES — each component owns its own block, scoped by BEM.
   New families append below as the catalog grows.
   ════════════════════════════════════════════════════════════════════ */

/* ── Section header (used inside other sections) ── */
.section-head__heading { margin-bottom: var(--space-md); }
.section-head__sub {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 720px;
    margin: 0;
}
.section-head--center .section-head__sub { margin-inline: auto; }

/* ── Site header (template-parts/headers/standard.php) ── */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}
.site-header--sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--sh-sm);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-block: var(--space-md);
}
.site-header__logo img { max-height: 48px; width: auto; }
.site-header__logo-text { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text); text-decoration: none; }
.site-header__nav { display: flex; align-items: center; gap: var(--space-lg); }
.site-header__nav-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; gap: var(--space-lg);
}
.site-header__nav-list a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--weight-med);
}
.site-header__nav-list a:hover { color: var(--color-primary); }
.site-header__menu-toggle {
    display: none;
    background: transparent; border: none; padding: var(--space-sm); cursor: pointer; color: var(--color-text);
}

@media (max-width: 767px) {
    .site-header__menu-toggle { display: inline-flex; }
    .site-header__nav {
        position: fixed;
        inset: 60px 0 0 0;
        background: var(--color-surface);
        padding: var(--space-lg);
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
        transform: translateX(100%);
        transition: transform .25s ease-out;
        z-index: 99;
    }
    .site-header__nav.is-open { transform: translateX(0); }
    .site-header__nav-list { flex-direction: column; gap: var(--space-md); }
}

/* ── Site footer (template-parts/footers/multi-column.php) ── */
.site-footer {
    background: var(--color-2);
    color: var(--color-surface);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { opacity: .85; }
.site-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
    padding-block: var(--space-xxl);
}
.site-footer__tagline { color: rgba(255,255,255,.7); margin-top: var(--space-md); }
.site-footer__social { list-style: none; padding: 0; display: flex; gap: var(--space-md); margin-top: var(--space-md); }
.site-footer__social a { display: inline-flex; }
.site-footer__nav-list { list-style: none; padding: 0; display: grid; gap: var(--space-sm); }
.site-footer__column-heading { font-size: var(--text-md); margin-bottom: var(--space-md); color: var(--color-surface); }
.site-footer__contact p { margin-bottom: var(--space-sm); }
.site-footer__bar {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-block: var(--space-md);
    font-size: var(--text-sm);
    color: rgba(255,255,255,.7);
}
.site-footer__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.site-footer__legal-list { list-style: none; padding: 0; display: flex; gap: var(--space-md); margin: 0; }

@media (max-width: 767px) {
    .site-footer__inner { grid-template-columns: 1fr; }
}

/* ── Hero (template-parts/heroes/centered.php) ── */
.hero { padding-block: var(--space-xxl); }
.hero__inner { text-align: center; max-width: 800px; margin-inline: auto; }
.hero__eyebrow { margin-bottom: var(--space-sm); }
.hero__title { margin-bottom: var(--space-md); }
.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}
.hero__ctas {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}
.hero__ctas:not(:last-child) { margin-bottom: var(--space-xl); }
.hero__media { margin-top: var(--space-xl); }
.hero__media img { display: block; margin-inline: auto; }

/* ── Intro split (template-parts/intro-splits/image-left.php) ── */
.intro-split__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}
/* If there's no media slot rendered, collapse to one column */
.intro-split__inner:has(> .intro-split__content:only-child) {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-inline: auto;
}
.intro-split--image-right .intro-split__inner > .intro-split__media:first-child { order: 2; }
.intro-split__media img { width: 100%; height: auto; }
.intro-split__title { margin-bottom: var(--space-md); }
.intro-split__cta { margin-top: var(--space-lg); }

@media (max-width: 767px) {
    .intro-split__inner { grid-template-columns: 1fr; gap: var(--space-xl); }
}

/* ── Service grid — cards ── */
.service-grid__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}
.service-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    transition: transform .15s, box-shadow .15s;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.service-card__link { display: block; text-decoration: none; color: inherit; }
.service-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card__image { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: var(--space-lg); }
.service-card__title { margin-bottom: var(--space-sm); font-size: var(--text-xl); }
.service-card__excerpt { color: var(--color-text-muted); margin-bottom: var(--space-md); }
.service-card__more { color: var(--color-primary); font-weight: var(--weight-bold); font-size: var(--text-sm); }

/* ── Generic CPT loop (cpt-loop/grid) — any custom post type ── */
.cpt-loop { background: var(--cpt-loop-bg, var(--color-bg)); }
.cpt-loop__list {
    display: grid;
    grid-template-columns: repeat(var(--cpt-loop-cols, 3), 1fr);
    gap: var(--cpt-loop-gap, var(--space-lg));
}
@media (max-width: 900px) { .cpt-loop__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cpt-loop__list { grid-template-columns: 1fr; } }
.cpt-loop__card {
    background: var(--cpt-loop-card-bg, var(--color-surface));
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    transition: transform .15s, box-shadow .15s;
}
.cpt-loop__card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.cpt-loop__link { display: block; text-decoration: none; color: inherit; }
.cpt-loop__media { aspect-ratio: 4 / 3; overflow: hidden; }
.cpt-loop__image { width: 100%; height: 100%; object-fit: cover; }
.cpt-loop__body { padding: var(--space-lg); }
.cpt-loop__title { margin-bottom: var(--space-sm); font-size: var(--text-xl); }
.cpt-loop__excerpt { color: var(--color-text-muted); margin-bottom: var(--space-md); }
.cpt-loop__more { color: var(--color-primary); font-weight: var(--weight-bold); font-size: var(--text-sm); }

/* ── Radio group field ── */
.field--radio .field__radios { display: flex; flex-direction: column; gap: var(--space-sm); }
.field--radio .field__radio { display: flex; align-items: center; gap: var(--space-sm); cursor: pointer; }

/* ── Testimonial — single large ── */
.testimonial-large__figure {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}
.testimonial-large__rating { font-size: var(--text-xl); color: var(--color-warning); margin-bottom: var(--space-md); letter-spacing: .1em; }
.testimonial-large__quote {
    font-size: var(--text-xl);
    font-family: var(--font-display);
    line-height: 1.35;
    margin: 0 0 var(--space-xl);
    quotes: '"' '"';
}
.testimonial-large__quote::before { content: open-quote; }
.testimonial-large__quote::after  { content: close-quote; }
.testimonial-large__author { display: inline-flex; align-items: center; gap: var(--space-md); }
.testimonial-large__photo img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial-large__author-text { text-align: left; }
.testimonial-large__name { display: block; font-weight: var(--weight-bold); }
.testimonial-large__role { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ── CTA banner ── */
.cta-banner {
    background: var(--color-primary);
    color: var(--color-surface);
}
.cta-banner .cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    padding-block: var(--space-xl);
    flex-wrap: wrap;
}
.cta-banner__heading { color: var(--color-surface); margin: 0 0 var(--space-sm); }
.cta-banner__body { margin: 0; opacity: .9; max-width: 560px; }
.cta-banner__ctas { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.cta-banner .btn--primary {
    background: var(--color-surface);
    color: var(--color-primary);
}
.cta-banner .btn--ghost { border-color: var(--color-surface); color: var(--color-surface); }

@media (max-width: 767px) {
    .cta-banner .cta-banner__inner { flex-direction: column; align-items: flex-start; }
}

/* ── Trust bar ── */
.trust-bar { padding-block: var(--space-xl); }
.trust-bar__heading {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}
.trust-bar__list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}
.trust-bar__item { opacity: .75; transition: opacity .2s; }
.trust-bar__item:hover { opacity: 1; }
.trust-bar__logo { max-height: 40px; width: auto; filter: grayscale(1); }
.trust-bar__item:hover .trust-bar__logo { filter: grayscale(0); }
.trust-bar__label { color: var(--color-text-muted); font-weight: var(--weight-med); }

/* ── Reveal-on-scroll ── */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease-out, transform .5s ease-out;
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════════
   M4 APPENDIX — new variants, families, dividers, eyebrow-with-lines
   ════════════════════════════════════════════════════════════════════ */

/* ── Section dividers (wave / slant / curve) ──
   Templates add `section--divider-top-<shape>` and/or
   `section--divider-bottom-<shape>` via layerly_section_classes(). The SVG
   is masked using --divider-fill from the section's background so the
   divider blends into whatever sits behind it. */
.section[class*="section--divider-top-"]    { padding-top:    calc(var(--space-xxl) + 60px); }
.section[class*="section--divider-bottom-"] { padding-bottom: calc(var(--space-xxl) + 60px); }

.section[class*="section--divider-top-"]::after,
.section[class*="section--divider-bottom-"]::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1;
    pointer-events: none;
    background-color: var(--color-surface);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
}
.section[class*="section--divider-top-"]::after    { top: 0;    transform: scaleY(-1); }
.section[class*="section--divider-bottom-"]::before { bottom: 0; }

/* Note: divider colour defaults to --color-surface; override per-section by
   setting --color-divider on the section element. */
.section[class*="section--divider-"][style*="--color-divider"]::after,
.section[class*="section--divider-"][style*="--color-divider"]::before {
    background-color: var(--color-divider);
}

.section--divider-top-wave::after,    .section--divider-bottom-wave::before    { -webkit-mask-image: url(/wp-content/themes/layerly-base/assets/dividers/wave.svg);  mask-image: url(/wp-content/themes/layerly-base/assets/dividers/wave.svg); }
.section--divider-top-slant::after,   .section--divider-bottom-slant::before   { -webkit-mask-image: url(/wp-content/themes/layerly-base/assets/dividers/slant.svg); mask-image: url(/wp-content/themes/layerly-base/assets/dividers/slant.svg); }
.section--divider-top-curve::after,   .section--divider-bottom-curve::before   { -webkit-mask-image: url(/wp-content/themes/layerly-base/assets/dividers/curve.svg); mask-image: url(/wp-content/themes/layerly-base/assets/dividers/curve.svg); }

/* ── Hero — split variant ── */
.hero__inner--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}
.hero--image-left .hero__inner--split > .hero__media   { order: 1; }
.hero--image-left .hero__inner--split > .hero__content { order: 2; }
.hero--split .hero__title    { font-size: var(--text-xxl); line-height: 1.1; margin-bottom: var(--space-md); }
.hero--split .hero__subtitle { font-size: var(--text-lg); color: var(--color-text-muted); margin-bottom: var(--space-xl); }
.hero--split .hero__ctas     { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.hero--split .hero__media img { width: 100%; height: auto; display: block; }

@media (max-width: 880px) {
    .hero__inner--split { grid-template-columns: 1fr; gap: var(--space-xl); }
    .hero--image-left .hero__inner--split > .hero__media,
    .hero--image-left .hero__inner--split > .hero__content { order: initial; }
}

/* ── Section head — left variant + with-line-side eyebrow ── */
.section-head--left              { text-align: left; }
.section-head--left .section-head__inner { max-width: none; margin-inline: 0; }

.eyebrow--with-lines {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    justify-content: center;
}
.eyebrow--with-lines .eyebrow__line {
    flex: 1;
    height: 1px;
    background: var(--color-border);
    max-width: 80px;
}
.eyebrow--with-lines .eyebrow__label { white-space: nowrap; }

/* ── Testimonials — carousel variant ── */
.testimonial-carousel { padding-block: var(--space-xxl); }
.tcarousel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-md);
}
.tcarousel__track {
    grid-column: 2;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.tcarousel__track::-webkit-scrollbar { display: none; }

/* Carousel drag-to-swipe affordance (any [data-carousel-track]). JS adds
   .is-dragging during a mouse drag; disable snap so the drag tracks the pointer. */
[data-carousel-track] { cursor: grab; }
[data-carousel-track].is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.tcarousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: var(--space-xl);
    text-align: center;
    box-sizing: border-box;
}
.tcarousel__rating { color: var(--color-accent, var(--color-primary)); letter-spacing: 2px; margin-bottom: var(--space-md); }
.tcarousel__quote {
    font-size: var(--text-lg);
    line-height: 1.5;
    margin: 0 0 var(--space-lg);
    max-width: 720px;
    margin-inline: auto;
}
.tcarousel__author {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    text-align: left;
}
.tcarousel__photo img { width: 56px; height: 56px; }
.tcarousel__author-text { display: flex; flex-direction: column; }
.tcarousel__name { font-weight: var(--weight-bold); }
.tcarousel__role { color: var(--color-text-muted); font-size: var(--text-sm); }

.tcarousel__nav {
    grid-row: 1;
    appearance: none;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.tcarousel__nav:hover  { background: var(--color-bg-alt); }
.tcarousel__nav:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.tcarousel__nav--prev { grid-column: 1; }
.tcarousel__nav--next { grid-column: 3; }

.tcarousel__dots {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}
.tcarousel__dot, .carousel__dot {
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: background-color .15s, transform .15s;
}
.tcarousel__dot.is-active, .carousel__dot.is-active {
    background: var(--color-primary);
    transform: scale(1.2);
}

@media (max-width: 720px) {
    .tcarousel { grid-template-columns: 1fr; }
    .tcarousel__nav { display: none; }
    .tcarousel__track { grid-column: 1; }
}

/* ── Disclosures — accordion ── */
.accordion { border-top: 1px solid var(--color-border); }
.accordion__item {
    border-bottom: 1px solid var(--color-border);
}
.accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    cursor: pointer;
    list-style: none;
    font-weight: var(--weight-bold);
    font-size: var(--text-md);
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.accordion__question { flex: 1; }
.accordion__icon {
    color: var(--color-text-muted);
    transition: transform .25s ease;
    display: inline-flex;
}
.accordion__item[open] > .accordion__summary .accordion__icon { transform: rotate(180deg); }
.accordion__answer {
    padding: 0 0 var(--space-lg);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ── Team — grid ── */
.team__list {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
}
.team__member { text-align: center; }
.team__photo { margin-bottom: var(--space-md); }
.team__photo-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 9999px;
}
.team__name { margin: 0 0 var(--space-xs); font-size: var(--text-lg); }
.team__role { color: var(--color-text-muted); margin: 0 0 var(--space-md); }
.team__bio  { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0 0 var(--space-md); }
.team__social {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}
.team__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    color: var(--color-text-muted);
    transition: color .15s, background-color .15s;
}
.team__social a:hover { color: var(--color-primary); background: var(--color-bg-alt); }

/* ── Process steps — numbered ── */
.process-steps__list {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    counter-reset: layerly-step;
}
.process-steps__item {
    position: relative;
    padding: var(--space-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: left;
}
.process-steps__number {
    font-size: var(--text-xxl);
    line-height: 1;
    font-weight: var(--weight-bold);
    color: var(--color-primary);
    opacity: .35;
    margin-bottom: var(--space-md);
}
.process-steps__icon { color: var(--color-primary); margin-bottom: var(--space-md); font-size: 32px; }
.process-steps__title { margin: 0 0 var(--space-sm); font-size: var(--text-lg); }
.process-steps__desc  { margin: 0; color: var(--color-text-muted); line-height: 1.6; }

/* ── Feature blocks — alternating ── */
.feature-blocks__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxl);
}
.feature-blocks__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}
.feature-blocks__row--image-right > .feature-blocks__media   { order: 2; }
.feature-blocks__row--image-right > .feature-blocks__content { order: 1; }
.feature-blocks__media img { width: 100%; height: auto; display: block; }
.feature-blocks__title { margin: 0 0 var(--space-md); font-size: var(--text-xl); }
.feature-blocks__body  { color: var(--color-text-muted); line-height: 1.65; }
.feature-blocks__body p:last-child { margin-bottom: 0; }

@media (max-width: 880px) {
    .feature-blocks__row,
    .feature-blocks__row--image-right { grid-template-columns: 1fr; }
    .feature-blocks__row > *,
    .feature-blocks__row--image-right > * { order: initial; }
}

/* ── Site footer — minimal ── */
.site-footer--minimal { padding-block: var(--space-lg); border-top: 1px solid var(--color-border); }
.site-footer--minimal .site-footer__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}
.site-footer--minimal .site-footer__minimal-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}
.site-footer--minimal .site-footer__copyright { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.site-footer--minimal .site-footer__legal-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: var(--space-md);
}
.site-footer--minimal .site-footer__legal-list a {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    text-decoration: none;
}
.site-footer--minimal .site-footer__legal-list a:hover { color: var(--color-text); }

/* ════════════════════════════════════════════════════════════════════
   COMPONENT LIBRARY (P1) — nav · footer · form · fields
   Structure/behavior LOCKED. Per-site look = override the --knobs below.
   ════════════════════════════════════════════════════════════════════ */

/* ── Component: nav/primary ── */
.nav {
    --nav-bg: var(--color-surface);
    --nav-fg: var(--color-text);
    --nav-height: 72px;
    --nav-link-weight: var(--weight-med);
    --nav-link-hover: var(--color-primary);
    --nav-gap: var(--space-lg);
    background: var(--nav-bg);
    color: var(--nav-fg);
}
[data-nav-sticky] { position: sticky; top: 0; z-index: 1000; transition: box-shadow .2s; }
[data-nav-sticky].is-scrolled { box-shadow: var(--sh-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--nav-gap); min-height: var(--nav-height); }
.nav__logo { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.nav__logo-img { max-height: calc(var(--nav-height) - var(--space-lg)); width: auto; }
.nav__logo-text { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: inherit; }
.nav__menu { display: flex; align-items: center; gap: var(--nav-gap); }
.nav__list { display: flex; align-items: center; gap: var(--nav-gap); list-style: none; margin: 0; padding: 0; }
.nav__list a { color: inherit; text-decoration: none; font-weight: var(--nav-link-weight); }
.nav__list a:hover { color: var(--nav-link-hover); }
.nav__cta { white-space: nowrap; }

/* ── Chrome behavior — LOCKED, attribute-driven ───────────────────────────
   Works on nav/primary AND any bespoke header/footer that uses the data hooks.
   Design the LOOK on your own classes / the --mobile-menu-* vars; the BEHAVIOR
   (full-screen drawer, hamburger→X, body-lock) comes from here — never rebuilt.
   Hooks: [data-mobile-menu-toggle] (the hamburger button, 3 <span> bars),
   [data-mobile-menu] (the drawer), [data-nav-sticky] (above). */
[data-mobile-menu-toggle] { display: none; position: relative; z-index: 1002; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
[data-mobile-menu-toggle] > span { display: block; width: 26px; height: 3px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
[data-mobile-menu-toggle][aria-expanded="true"] > span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
[data-mobile-menu-toggle][aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
[data-mobile-menu-toggle][aria-expanded="true"] > span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
    [data-mobile-menu-toggle] { display: inline-flex; }
    [data-mobile-menu] {
        position: fixed; inset: 0; z-index: 1001;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: var(--space-lg); padding: var(--space-xxl) var(--space-lg);
        /* Solid brand fallback — NOT --nav-bg, which is often transparent on a
           transparent-over-hero header and would make the whole drawer invisible. */
        background: var(--mobile-menu-bg, var(--color-1));
        color: var(--mobile-menu-fg, var(--color-surface));
        transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
    }
    [data-mobile-menu].is-open { transform: translateX(0); }
    [data-mobile-menu] ul { flex-direction: column; align-items: center; gap: var(--space-md); width: 100%; margin: 0; padding: 0; list-style: none; }
    [data-mobile-menu] a { font-size: var(--text-lg); color: var(--mobile-menu-fg, var(--color-surface)); }
    body.mobile-menu-open { overflow: hidden; }
    /* When the drawer is open the hamburger→X sits OVER the drawer — force it to the
       drawer's fg so it's always visible even if the header's own color is dark/transparent. */
    [data-mobile-menu-toggle][aria-expanded="true"] { color: var(--mobile-menu-fg, var(--color-surface)); }
}

/* ── WP admin-bar offset — LOCKED. The 32px admin bar (46px ≤782px) is fixed to the
   viewport top and only shown to logged-in users. WordPress shifts NORMAL-flow content
   for it, but NOT position:sticky/fixed/absolute headers — so a sticky or transparent-
   over-hero header renders UNDER the bar unless we offset it. Applies to the standard
   sticky hook AND to a bespoke overlay header that carries [data-nav-overlay] or
   .site-header--overlay (set that on a header positioned absolute over the hero). ── */
body.admin-bar [data-nav-sticky],
body.admin-bar [data-nav-overlay],
body.admin-bar .site-header--overlay { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar [data-nav-sticky],
  body.admin-bar [data-nav-overlay],
  body.admin-bar .site-header--overlay { top: 46px; }
}

/* ── Standard copyright line (footer.php, every site — themeable) ── */
.layerly-copyright { background: var(--footer-copyright-bg, var(--color-2)); color: var(--footer-copyright-fg, var(--color-surface)); text-align: center; padding: var(--space-md) var(--space-lg); font-size: var(--text-sm); }
.layerly-copyright__line { margin: 0; }
.layerly-copyright__sep { opacity: .5; margin: 0 .35em; }
.layerly-copyright a { color: inherit; text-decoration: underline; }

/* ── Component: footers/columns ── */
.footer {
    --footer-bg: var(--color-2);
    --footer-fg: var(--color-surface);
    --footer-heading: var(--color-surface);
    --footer-link: rgba(255,255,255,.7);
    --footer-link-hover: var(--color-surface);
    --footer-pad-y: var(--space-xxl);
    --footer-cols: 4;
    background: var(--footer-bg);
    color: var(--footer-fg);
}
.footer__inner {
    display: grid; gap: var(--space-xl);
    grid-template-columns: 1.4fr repeat(var(--footer-cols), 1fr);
    padding-block: var(--footer-pad-y);
}
.footer__logo { display: inline-flex; text-decoration: none; color: inherit; }
.footer__logo-img { max-height: 44px; width: auto; }
.footer__logo-text { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); }
.footer__tagline { color: var(--footer-link); margin-top: var(--space-md); max-width: 32ch; }
.footer__columns { display: contents; }
.footer__col-heading { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--footer-heading); margin-bottom: var(--space-md); }
.footer__col-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.footer__col-list a, .footer__legal-list a { color: var(--footer-link); text-decoration: none; }
.footer__col-list a:hover, .footer__legal-list a:hover { color: var(--footer-link-hover); }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); }
.footer__legal-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; padding-block: var(--space-lg); }
.footer__copyright { margin: 0; color: var(--footer-link); font-size: var(--text-sm); }
.footer__legal-list { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
@media (max-width: 768px) {
    .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer__inner { grid-template-columns: 1fr; }
}

/* ── Component: forms/contact + field primitives ── */
.form {
    --form-gap: var(--space-md);
    --form-cols: 2;
    --field-bg: var(--color-surface);
    --field-fg: var(--color-text);
    --field-border: var(--color-border);
    --field-radius: var(--radius-md);
    --field-pad: var(--space-md);
    --field-focus: var(--color-primary);
    --label-color: var(--color-text);
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__fields { display: grid; grid-template-columns: repeat(var(--form-cols), 1fr); gap: var(--form-gap); }
.field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: var(--space-xs); }
.field__label { font-size: var(--text-sm); font-weight: var(--weight-med); color: var(--label-color); }
.field__req { color: var(--color-error); }
.field__input {
    width: 100%; box-sizing: border-box;
    background: var(--field-bg); color: var(--field-fg);
    border: 1px solid var(--field-border); border-radius: var(--field-radius);
    padding: var(--field-pad); font: inherit; font-size: var(--text-md);
    transition: border-color .15s, box-shadow .15s;
}
.field__input:focus-visible { outline: none; border-color: var(--field-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--field-focus) 25%, transparent); }
.field__textarea { resize: vertical; min-height: 120px; }
.field--checkbox .field__check { flex-direction: row; align-items: center; gap: var(--space-sm); cursor: pointer; }
.field__checkbox { width: 18px; height: 18px; accent-color: var(--field-focus); }
.form__submit { margin-top: var(--form-gap); }
.form__status { margin-top: var(--space-sm); font-size: var(--text-sm); min-height: 1.2em; }
.form__status.is-error { color: var(--color-error); }
.form__status.is-success { color: var(--color-success); }
@media (max-width: 600px) {
    .form__fields { grid-template-columns: 1fr; }
}

/* ── Component: heroes/full-bg (knob-driven) ── */
.hero--full-bg {
    --hero-bg: var(--color-1);
    --hero-fg: var(--color-surface);
    --hero-overlay: rgba(0,0,0,.45);
    --hero-min-h: 80vh;
    --hero-pad-y: var(--space-xxl);
    --hero-align: left;
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--hero-min-h);
    padding-block: var(--hero-pad-y);
    background: var(--hero-bg);
    color: var(--hero-fg);
    overflow: hidden;
}
.hero--full-bg .hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero--full-bg .hero__bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero--full-bg .hero__overlay { position: absolute; inset: 0; z-index: 1; background: var(--hero-overlay); pointer-events: none; }
.hero--full-bg .hero__inner { position: relative; z-index: 2; text-align: var(--hero-align); width: 100%; }
.hero--full-bg .hero__title { color: var(--hero-fg); font-size: var(--text-h1); margin-bottom: var(--space-md); }
.hero--full-bg .hero__subtitle { color: var(--hero-fg); font-size: var(--text-lg); opacity: .92; max-width: 56ch; margin-bottom: var(--space-xl); }
.hero--full-bg .hero__eyebrow { color: var(--hero-fg); }
.hero--full-bg .hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-md); }
/* Center alignment: set --hero-align:center; the inner is centered + content too. */
.hero--full-bg[style*="--hero-align: center"] .hero__inner { margin-inline: auto; }
.hero--full-bg[style*="--hero-align: center"] .hero__subtitle { margin-inline: auto; }
.hero--full-bg[style*="--hero-align: center"] .hero__ctas { justify-content: center; }
@media (max-width: 768px) {
    .hero--full-bg { --hero-min-h: 60vh; }
    .hero--full-bg .hero__title { font-size: var(--text-h2); }
}


/* Layerly — Aveya design tokens — colors + fonts from Figma — 2026-07-23 21:57:30 */
:root {
    /* Colors — exact, design-derived (Aveya) */
    --color-1: #000000;
    --color-2: #8C7A69;
    --color-3: #FFFFFF;
    --color-4: #ECE7DC;
    --color-5: #FBFAF6;
    --color-6: #D8C3B0;
    --color-7: #372426;
    --color-8: #EA4335;

    /* Functional aliases */
    --color-text: #000000;
    --color-bg: var(--color-4);
    --color-surface: #FBFAF6;
    --color-primary: #8C7A69;
    --color-text-muted: #372426;
    --color-border: #ECE7DC;

    /* Fonts — exact families. Headlines (44-64px) are Bricolage Grotesque;
       body copy + quote-style paragraphs are Libre Baskerville. */
    --font-1: 'Libre Baskerville', serif;
    --font-2: 'Bricolage Grotesque', sans-serif;
    --font-display: var(--font-2);
    --font-body: var(--font-1);
}


/* Layerly — Bespoke section CSS for Aveya home page — hero, text-intro, showcase, material-grid, stone-picker, pillars, app-showcase, plus feature_blocks/cta_banner knob overrides — 2026-07-23 22:04:08 */
/* ════════════════════════════════════════════════════════════════════
   AVEYA — bespoke section families (home page)
   ════════════════════════════════════════════════════════════════════ */

/* ── section-headers/centered-divider — heading + muted subheading + a
   short vertical divider line beneath. Recurring "chapter head" motif. ── */
.section-head--divider { text-align: center; margin-bottom: var(--space-xl); }
.section-head--divider .section-head__inner { max-width: 620px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-xl); }
.section-head--divider .section-head__heading {
    font-family: var(--font-2);
    font-weight: var(--weight-med);
    font-size: var(--text-h1);
    line-height: 1.05;
    color: var(--color-text);
    margin: 0;
}
.section-head--divider .section-head__sub {
    font-family: var(--font-1);
    font-size: var(--text-sm);
    color: var(--color-primary);
    max-width: 300px;
    margin: 0;
}
.section-head--divider .section-head__divider {
    width: 1px;
    height: 80px;
    background: var(--color-6);
    display: block;
}

/* ── heroes/inset-overlay — rounded inset image, cream headline overlaid
   bottom, CTA + companion line split bottom-left / bottom-right. ── */
.hero--inset-overlay { padding-block: var(--space-xl); }
.hero--inset-overlay .hero__frame {
    position: relative;
    margin-inline: var(--space-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1400 / 800;
    min-height: 480px;
    background: var(--color-1);
}
.hero--inset-overlay .hero__media { position: absolute; inset: 0; margin: 0; }
.hero--inset-overlay .hero__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero--inset-overlay .hero__overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-xxl);
    background: linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 45%);
}
.hero--inset-overlay .hero__title {
    font-family: var(--font-2); font-weight: var(--weight-med);
    font-size: var(--text-h1); line-height: 1.05;
    color: var(--color-4); margin: 0; max-width: 460px;
}
.hero--inset-overlay .hero__bottom-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: var(--space-lg); flex-wrap: wrap;
}
.hero--inset-overlay .hero__cta {
    background: var(--color-4); color: var(--color-1);
    font-family: var(--font-2); font-weight: var(--weight-semibold, 600);
    font-size: var(--text-md); text-transform: uppercase; letter-spacing: .04em;
    padding: var(--space-md) var(--space-xl); border-radius: var(--radius-md);
    white-space: nowrap;
}
.hero--inset-overlay .hero__subtitle {
    font-family: var(--font-2); font-weight: var(--weight-med);
    font-size: var(--text-h1); line-height: 1.05;
    color: var(--color-4); max-width: 700px; flex: 1 1 320px; text-align: right; margin: 0;
}
@media (max-width: 767px) {
    .hero--inset-overlay .hero__bottom-row { flex-direction: column; align-items: flex-start; }
    .hero--inset-overlay .hero__subtitle { text-align: left; }
}

/* ── text-intros/quote-divider — eyebrow, divider line, large serif quote,
   supporting body text. Centered narrow column. ── */
.text-intro { padding-block: var(--space-xxl); }
.text-intro__inner { max-width: 868px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); text-align: center; }
.text-intro__eyebrow { font-family: var(--font-1); font-size: var(--text-sm); color: var(--color-primary); margin: 0; max-width: 320px; }
.text-intro__divider { width: 1px; height: 80px; background: var(--color-6); display: block; }
.text-intro__quote { font-family: var(--font-1); font-size: var(--text-h3); line-height: 1.2; color: var(--color-primary); margin: 0; }
.text-intro__body { font-family: var(--font-1); font-size: var(--text-md); line-height: 1.4; color: var(--color-text); margin: 0; max-width: 800px; }

/* ── showcase/dual-mode ("states") — two images side by side, labeled
   tabs beneath (active = dark), then a quote + body + CTA below. ── */
.showcase--dual-mode { padding-block: var(--space-xxl); }
.showcase__images { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-md); }
.showcase__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 684/800; }
.showcase__img img { width: 100%; height: 100%; object-fit: cover; }
.showcase__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.showcase__tab {
    text-align: center; padding: var(--space-sm) 0; border-radius: var(--radius-md);
    font-family: var(--font-2); font-weight: var(--weight-semibold, 600); font-size: var(--text-xl);
    background: var(--color-6); color: var(--color-7);
}
.showcase__tab--active { background: var(--color-primary); color: var(--color-4); }
.showcase__body { max-width: 956px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; gap: var(--space-md); }
.showcase__quote { font-family: var(--font-1); font-size: var(--text-h3); line-height: 1.2; color: var(--color-primary); margin: 0; }
.showcase__text { font-family: var(--font-1); font-size: var(--text-md); color: var(--color-text); margin: 0 0 var(--space-md); }
.showcase__cta { display: flex; justify-content: center; }

/* ── feature-grids/material-list ("materials") — intro line + a
   bordered 3×2 grid of material items with a circular icon slot. ── */
.material-grid { padding-block: var(--space-xxl); }
.material-grid__intro { max-width: 454px; margin: 0 auto var(--space-xxl); text-align: center; font-family: var(--font-1); font-size: var(--text-lg); line-height: 1.4; color: var(--color-text); }
.material-grid__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl) var(--space-xl); max-width: 1200px; margin-inline: auto; }
.material-grid__item { border-top: 1px solid var(--color-6); padding-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-xl); justify-content: space-between; min-height: 160px; }
.material-grid__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.material-grid__title { font-family: var(--font-2); font-weight: var(--weight-reg); font-size: var(--text-h3); line-height: 1.1; color: var(--color-text); margin: 0; white-space: pre-line; }
.material-grid__icon { width: 72px; height: 70px; border: 2px solid var(--color-6); border-radius: var(--radius-lg); flex-shrink: 0; }
.material-grid__desc { font-family: var(--font-1); font-size: var(--text-sm); color: var(--color-primary); margin: 0; }
@media (max-width: 900px) { .material-grid__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .material-grid__list { grid-template-columns: 1fr; } }

/* ── product-gallery/stone-picker ("stones") — quote + bold line, a row
   of round gemstone swatches, CTA below. ── */
.stone-picker { padding-block: var(--space-xxl); }
.stone-picker__intro { max-width: 634px; margin: 0 auto var(--space-xl); text-align: center; display: flex; flex-direction: column; gap: var(--space-md); }
.stone-picker__lede { font-family: var(--font-1); font-size: var(--text-md); color: var(--color-text); margin: 0; }
.stone-picker__cta-line { font-family: var(--font-1); font-weight: var(--weight-bold); font-size: 24px; color: var(--color-text); margin: 0; }
.stone-picker__list { list-style: none; margin: 0 0 var(--space-xl); padding: var(--space-lg) 0; display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-lg); }
.stone-picker__stone { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-xl) var(--space-lg); width: 221px; }
.stone-picker__swatch { width: 133px; height: 148px; border-radius: var(--radius-full); overflow: hidden; box-shadow: 0 12px 28px rgba(140,122,105,.3); }
.stone-picker__swatch img { width: 100%; height: 100%; object-fit: cover; }
.stone-picker__label { font-family: var(--font-1); font-size: 18px; color: var(--color-primary); margin: 0; }
.stone-picker__cta { display: flex; justify-content: center; }

/* ── pillars/stacked-cards ("pillars") — a centered column of large
   colored feature cards, each a big heading + supporting line. ── */
.pillars--stacked { padding-block: var(--space-xxl); }
.pillars__list { list-style: none; margin: 0; padding: 0; max-width: 440px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-lg); }
.pillars__item { background: var(--color-6); border-radius: var(--radius-lg); padding: var(--space-xl); text-align: center; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-lg); min-height: 380px; }
.pillars__title { font-family: var(--font-2); font-weight: var(--weight-reg); font-size: var(--text-h1); line-height: 1; color: var(--color-primary); margin: 0; }
.pillars__desc { font-family: var(--font-1); font-size: var(--text-lg); line-height: 1.4; color: var(--color-text); margin: 0; }

/* ── app-showcase/phone-mockup ("one tap") — a rounded content card:
   text left, phone mockup image right; CTA button below the card. ── */
.app-showcase { padding-block: var(--space-xxl); }
.app-showcase__card {
    max-width: 1200px; margin: 0 auto var(--space-xl);
    background: var(--color-surface); border-radius: var(--radius-lg);
    display: grid; grid-template-columns: 1fr 220px 1fr; align-items: center;
    padding: var(--space-xl) var(--space-xxl); gap: var(--space-xl);
}
.app-showcase__text { font-family: var(--font-2); font-weight: var(--weight-reg); font-size: var(--text-h2); line-height: 1.1; color: var(--color-text); margin: 0; }
.app-showcase__caption { font-family: var(--font-1); font-size: var(--text-md); line-height: 1.4; color: var(--color-text); margin: 0; }
.app-showcase__media { display: flex; justify-content: center; align-items: center; background: var(--color-6); border-radius: var(--radius-lg); padding: var(--space-lg); align-self: stretch; }
.app-showcase__media img { max-width: 260px; width: 100%; height: auto; }
.app-showcase__cta { display: flex; justify-content: center; }
@media (max-width: 767px) {
    .app-showcase__card { grid-template-columns: 1fr; text-align: center; }
}

/* ── feature_blocks (composed component) — add the divider-line under
   the section head to match the Figma "chapter head" motif on this page,
   without touching the locked component file. ── */
.section--feature_blocks .section-head--center .section-head__inner::after {
    content: ''; display: block; width: 1px; height: 80px; background: var(--color-6);
    margin: var(--space-lg) auto 0;
}
.section--feature_blocks .section-head__heading { font-family: var(--font-2); font-weight: var(--weight-med); font-size: var(--text-h1); line-height: 1.05; }
.section--feature_blocks .feature-blocks__content { background: var(--color-surface); border-radius: var(--radius-md); }
.section--feature_blocks .feature-blocks__title { font-family: var(--font-2); font-weight: var(--weight-reg); font-size: var(--text-h3); color: var(--color-primary); text-align: center; }
.section--feature_blocks .feature-blocks__body { font-family: var(--font-1); text-align: center; }
.section--feature_blocks .feature-blocks__body p:last-child { font-weight: var(--weight-bold); color: var(--color-text); }

/* ── cta_banner (composed component) — full-bleed image + dark overlay,
   centered cream text, single primary button. ── */
.section--cta_banner.cta-banner { color: var(--color-4); }
.section--cta_banner .cta-banner__inner { flex-direction: column; text-align: center; justify-content: center; padding-block: var(--space-xxl); }
.section--cta_banner .cta-banner__heading { font-family: var(--font-2); font-weight: var(--weight-med); font-size: var(--text-h1); color: var(--color-4); max-width: 768px; margin-inline: auto; }
.section--cta_banner .cta-banner__body { font-family: var(--font-1); color: var(--color-3); max-width: 634px; margin-inline: auto; opacity: 1; }
.section--cta_banner .cta-banner__ctas { justify-content: center; margin-top: var(--space-md); }
.section--cta_banner .btn--primary { background: var(--color-3); color: var(--color-1); text-transform: uppercase; font-family: var(--font-2); letter-spacing: .04em; }



/* Layerly — Style the new showcase__mode article card (wear_mode CPT loop) — 2026-07-23 22:10:34 */
/* Wear-mode card (showcase/dual-mode CPT loop) — image + its tab label stacked */
.showcase__mode { display: flex; flex-direction: column; gap: var(--space-md); }



/* Layerly — Real-image CTA banner background + overlay styling — 2026-07-23 22:10:43 */
/* ── ctas/photo-banner — real <img> full-bleed background + overlay ── */
.cta-banner--photo { position: relative; overflow: hidden; padding-block: var(--space-xl); }
.cta-banner--photo .cta-banner__bg { position: absolute; inset: 0; z-index: 0; }
.cta-banner--photo .cta-banner__bg-img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner--photo .cta-banner__overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.45); pointer-events: none; }
.cta-banner--photo .cta-banner__inner { position: relative; z-index: 2; }



/* Layerly — Fix button weight (600 not 700) sitewide, muted-text color alias to match Figma's tan eyebrow color, and feature_blocks body copy back to black — 2026-07-23 22:12:09 */
/* Font-weight token used by Figma's buttons/tab labels (600, distinct from the t-shirt bold=700) */
:root { --weight-semibold: 600; --color-text-muted: var(--color-primary); }
.btn { font-weight: var(--weight-semibold); }
.section--feature_blocks .feature-blocks__body { color: var(--color-text); }



/* Layerly — Fix remaining minor type deltas: button font-family, feature_blocks subheading + bold line sizes — 2026-07-23 22:12:43 */
/* Buttons use the display font (Bricolage), not the body serif */
.btn { font-family: var(--font-2); }
.section--feature_blocks .section-head__sub { font-size: 14px; }
.section--feature_blocks .feature-blocks__body p:last-child { font-size: 20px; }



/* Layerly — Targeted fix pass: header nav cream bg + dark Shop Aveya CTA, bespoke cream footer with copyright/social pill, spacing increases for features/cta/pillars/one-tap sections toward Figma proportions — 2026-07-23 23:07:12 */
/* FIX 2 — header nav: cream bar matching page bg + dark filled "SHOP AVEYA" CTA */
.nav { --nav-bg: var(--color-4); --nav-fg: var(--color-text); --nav-height: 80px; --nav-gap: var(--space-lg); }
.nav__list a { padding: var(--space-sm); display: inline-block; }
.nav__cta.btn--primary {
    background: var(--color-1);
    color: var(--color-3);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: var(--space-md) var(--space-xxl);
}
.nav__cta.btn--primary:hover { filter: brightness(1.15); }

/* FIX 4 — bespoke footer: logo + inline nav row, then a white pill with
   the copyright credit + social icons, matching Figma node 4121:1545 */
.footer { --footer-bg: var(--color-4); --footer-fg: var(--color-text); }
.footer__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding-block: var(--space-xxl) var(--space-lg);
    padding-inline: clamp(var(--space-md), 8vw, 120px);
}
.footer__nav-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; }
.footer__logo-text { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--color-text); }
.footer__menu-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.footer__menu-list a { display: inline-block; padding: var(--space-sm); color: var(--color-text-muted); font-family: var(--font-2); font-size: var(--text-md); text-decoration: none; }
.footer__menu-list a:hover { color: var(--color-text); }
.footer__bottom {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
    background: var(--color-3);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    flex-wrap: wrap;
}
.footer__copyright-line .layerly-copyright__line { margin: 0; font-family: var(--font-1); font-size: var(--text-xs); color: var(--color-text-muted); }
.footer__social { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--space-sm); }
.footer__social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: var(--radius-full);
    background: var(--color-text-muted); color: var(--color-3); font-size: var(--text-sm);
}
.footer__social-link:hover { opacity: .85; }
@media (max-width: 600px) {
    .footer__nav-row { flex-direction: column; align-items: flex-start; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* FIX 5 — section proportions toward Figma height. Fluid clamp()s, not fixed
   desktop px, so mobile spacing still scales down correctly. */
.section--feature_blocks { padding-block: clamp(48px, 8vw, 120px); }
.section--feature_blocks .feature-blocks__row { gap: var(--space-lg); }
.section--feature_blocks .feature-blocks__media { aspect-ratio: 684 / 800; border-radius: var(--radius-lg); overflow: hidden; }
.section--feature_blocks .feature-blocks__media img { width: 100%; height: 100%; object-fit: cover; }
.section--feature_blocks .feature-blocks__content { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-lg); padding: clamp(24px, 4vw, 40px); min-height: clamp(320px, 40vw, 800px); }

.section--cta_banner.cta-banner--photo { min-height: clamp(480px, 55vw, 800px); display: flex; align-items: center; }

.pillars--stacked { padding-block: clamp(48px, 10vw, 120px); }
.pillars__item { min-height: clamp(320px, 34vw, 520px); }

.app-showcase { padding-block: clamp(60px, 10vw, 120px); }
.app-showcase__card { padding: var(--space-xxl); min-height: clamp(420px, 45vw, 680px); }
