/* Templates gallery page + homepage teaser */

/* ── Template dock (under site-nav) ──────────────────────── */

.template-dock {
    position: relative;
    z-index: 40;
    background: #0c0b0a;
    border-bottom: 1px solid rgba(201, 169, 110, 0.18);
}

.template-dock-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: none;
    margin: 0;
    padding: 10px clamp(20px, 4vw, 48px);
    box-sizing: border-box;
}

.template-dock-label {
    flex: 0 0 auto;
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(201, 169, 110, 0.85);
    white-space: nowrap;
}

.template-dock-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.template-dock-list::-webkit-scrollbar {
    display: none;
}

.template-dock-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(244, 239, 230, 0.78);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.template-dock-chip:hover {
    color: #fff8f0;
    border-color: rgba(201, 169, 110, 0.45);
    background: rgba(201, 169, 110, 0.08);
}

.template-dock-chip--accent {
    border-color: rgba(201, 169, 110, 0.4);
    color: #e0c992;
}

.template-dock-chip--solid {
    border-color: #c9a96e;
    background: #c9a96e;
    color: #12100e;
}

.template-dock-chip--solid:hover {
    border-color: #e0c992;
    background: #e0c992;
    color: #12100e;
}

.template-dock-chip[aria-current="page"],
.template-dock-chip.is-active {
    border-color: rgba(201, 169, 110, 0.55);
    background: rgba(201, 169, 110, 0.12);
    color: #fff8f0;
}

@media (max-width: 720px) {
    .template-dock-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .template-dock-list {
        width: 100%;
        padding-bottom: 2px;
    }
}

/* ── Homepage condensed teaser ───────────────────────────── */

.home-templates-teaser {
    padding: clamp(64px, 10vw, 112px) 24px;
    background:
        radial-gradient(ellipse 70% 60% at 10% 0%, rgba(201, 169, 110, 0.12), transparent 55%),
        linear-gradient(180deg, #12100e 0%, #1a1714 100%);
    color: #f4efe6;
}

.home-templates-teaser-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 40px;
}

@media (min-width: 900px) {
    .home-templates-teaser-inner {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: end;
        gap: 48px;
    }
}

.home-templates-teaser-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a96e;
}

.home-templates-teaser-eyebrow-line {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: #c9a96e;
}

.home-templates-teaser-header h2 {
    margin: 0 0 14px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff8f0;
}

.home-templates-teaser-lead {
    margin: 0 0 24px;
    max-width: 42ch;
    color: rgba(244, 239, 230, 0.72);
    font-size: 16px;
    line-height: 1.55;
}

.home-templates-teaser-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
}

.home-templates-teaser-ghost {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #e0c992;
    text-decoration: none;
}

.home-templates-teaser-ghost:hover {
    color: #fff8f0;
    text-decoration: underline;
}

.home-templates-teaser-tiers {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-templates-teaser-tiers li {
    margin: 0;
    padding: 0;
    border: 1px solid rgba(201, 169, 110, 0.22);
    background: rgba(255, 255, 255, 0.03);
}

.home-templates-teaser-tier-link {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.home-templates-teaser-tiers li:has(.home-templates-teaser-tier-link:hover) {
    border-color: rgba(201, 169, 110, 0.45);
    background: rgba(201, 169, 110, 0.06);
}

.home-templates-teaser-tier-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c9a96e;
}

.home-templates-teaser-tiers strong {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff8f0;
}

.home-templates-teaser-tiers span:last-child {
    font-size: 13px;
    color: rgba(244, 239, 230, 0.55);
}

/* ── Templates page ──────────────────────────────────────── */

.templates-page {
    background: #0f0d0b;
    color: #f4efe6;
}

.tpl-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(420px, 62vh, 640px);
    overflow: hidden;
    background: #000;
}

.tpl-hero-media {
    position: absolute;
    inset: 0;
    background: #000;
}

.tpl-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    filter: saturate(0.95) brightness(0.7) contrast(1.04);
}

.tpl-hero-lights {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.tpl-hero-bloom {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 36% 30% at 60% 28%, rgba(255, 248, 235, 0.12) 0%, transparent 68%);
    mix-blend-mode: screen;
    animation: tpl-hero-bloom 8s ease-in-out infinite;
}

.tpl-hero-sparkles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.tpl-hero-spark {
    --sx: 50%;
    --sy: 30%;
    --sd: 0s;
    position: absolute;
    left: var(--sx);
    top: var(--sy);
    width: 3px;
    height: 3px;
    margin: -1.5px 0 0 -1.5px;
    border-radius: 50%;
    background: rgba(255, 252, 245, 0.9);
    box-shadow: 0 0 6px 1px rgba(255, 245, 220, 0.35);
    opacity: 0;
    animation: tpl-hero-twinkle 5.5s ease-in-out var(--sd) infinite;
}

.tpl-hero-veil {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.18) 72%, rgba(0, 0, 0, 0.3) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
}

@keyframes tpl-hero-bloom {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.85; }
}

@keyframes tpl-hero-twinkle {
    0%, 100% { opacity: 0; }
    45%, 55% { opacity: 0.55; }
}

.tpl-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(100px, 14vw, 140px) 24px 48px;
}

.tpl-hero-eyebrow {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c9a96e;
}

.tpl-hero-inner h1 {
    margin: 0 0 16px;
    max-width: 14ch;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(40px, 7vw, 68px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #fff8f0;
}

.tpl-hero-lead {
    margin: 0 0 28px;
    max-width: 40ch;
    color: rgba(244, 239, 230, 0.78);
    font-size: 17px;
    line-height: 1.55;
}

.tpl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tpl-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.16);
    background: rgba(26, 23, 20, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.tpl-jump a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(244, 239, 230, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tpl-jump a:hover,
.tpl-jump a:focus-visible {
    color: #c9a96e;
    outline: none;
}

.tpl-tier {
    padding: clamp(56px, 8vw, 96px) 24px;
}

.tpl-tier-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.tpl-tier-header {
    margin-bottom: 32px;
    max-width: 46ch;
}

.tpl-tier-eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a96e;
}

.tpl-tier-header h2 {
    margin: 0 0 12px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 500;
    line-height: 1.1;
    color: #fff8f0;
}

.tpl-tier-lead {
    margin: 0;
    color: rgba(244, 239, 230, 0.68);
    font-size: 16px;
    line-height: 1.55;
}

.tpl-tier--included,
.tpl-tier--designer,
.tpl-tier--signature {
    position: relative;
    padding-top: clamp(72px, 10vw, 120px);
    padding-bottom: clamp(72px, 10vw, 120px);
}

.tpl-tier--included {
    background:
        radial-gradient(ellipse 55% 45% at 12% 20%, rgba(201, 169, 110, 0.14), transparent 55%),
        radial-gradient(ellipse 45% 40% at 92% 75%, rgba(120, 150, 140, 0.1), transparent 50%),
        linear-gradient(180deg, #181512 0%, #13110f 55%, #161310 100%);
    border-block: 1px solid rgba(201, 169, 110, 0.14);
}

.tpl-tier--included::before,
.tpl-tier--designer::before,
.tpl-tier--signature::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.06), transparent);
    opacity: 0.8;
}

.tpl-tier--designer {
    background:
        radial-gradient(ellipse 60% 50% at 8% 15%, rgba(201, 169, 110, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 40% at 95% 70%, rgba(100, 140, 180, 0.14), transparent 50%),
        linear-gradient(180deg, #1c1814 0%, #14110f 55%, #181512 100%);
    border-block: 1px solid rgba(201, 169, 110, 0.18);
}

.tpl-tier-inner--designer,
.tpl-tier-inner--gallery {
    position: relative;
    z-index: 1;
    max-width: 1140px;
}

.tpl-designer-intro {
    display: grid;
    gap: 28px;
    margin-bottom: 40px;
}

@media (min-width: 900px) {
    .tpl-designer-intro {
        grid-template-columns: 1.4fr 0.8fr;
        align-items: end;
        gap: 40px;
        margin-bottom: 48px;
    }
}

.tpl-designer-intro-copy h2 {
    margin: 0 0 16px;
    max-width: 16ch;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff8f0;
}

.tpl-designer-intro-lead {
    margin: 0 0 18px;
    max-width: 48ch;
    color: rgba(244, 239, 230, 0.78);
    font-size: 17px;
    line-height: 1.55;
}

.tpl-designer-value {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.tpl-designer-value li {
    position: relative;
    padding-left: 18px;
    color: rgba(244, 239, 230, 0.72);
    font-size: 14px;
    line-height: 1.45;
}

.tpl-designer-value li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 1px;
    background: #c9a96e;
}

.tpl-designer-intro-aside {
    padding: 22px 22px 24px;
    border: 1px solid rgba(201, 169, 110, 0.28);
    background:
        linear-gradient(160deg, rgba(201, 169, 110, 0.12), rgba(255, 255, 255, 0.03));
}

.tpl-designer-aside-label {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c9a96e;
}

.tpl-designer-aside-text {
    margin: 0 0 14px;
    color: rgba(244, 239, 230, 0.82);
    font-size: 15px;
    line-height: 1.5;
}

.tpl-designer-aside-note {
    margin: 0;
    color: rgba(244, 239, 230, 0.5);
    font-size: 13px;
    line-height: 1.45;
}

.tpl-designer-gallery {
    display: grid;
    gap: 36px;
}

.tpl-designer-featured {
    display: grid;
    gap: 20px;
}

@media (min-width: 860px) {
    .tpl-designer-featured:not(.tpl-showroom-featured) {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (min-width: 1100px) {
    .tpl-designer-featured:not(.tpl-showroom-featured) {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 960px) {
    .tpl-showroom-featured {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.tpl-design-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid rgba(201, 169, 110, 0.24);
    background: rgba(255, 255, 255, 0.035);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.tpl-design-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 169, 110, 0.55);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

.tpl-design-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 12px;
    color: #c9a96e;
    background:
        radial-gradient(ellipse 70% 60% at 50% 30%, rgba(201, 169, 110, 0.12), transparent 70%);
}

.tpl-design-card--avalon .tpl-design-card-visual {
    color: #d4b87a;
    background:
        radial-gradient(ellipse 70% 60% at 40% 20%, rgba(90, 110, 140, 0.22), transparent 65%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(201, 169, 110, 0.16), transparent 60%);
}

.tpl-design-card--cardiff .tpl-design-card-visual {
    color: #e0a8a0;
    background:
        radial-gradient(ellipse 70% 60% at 30% 25%, rgba(199, 100, 105, 0.22), transparent 65%),
        radial-gradient(ellipse 50% 40% at 85% 75%, rgba(199, 154, 100, 0.18), transparent 60%);
}

.tpl-design-card--woolf .tpl-design-card-visual {
    color: #8eb4d8;
    background:
        radial-gradient(ellipse 70% 60% at 35% 20%, rgba(13, 33, 55, 0.55), transparent 65%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0, 79, 163, 0.28), transparent 60%);
}

.tpl-design-card--mcqueen .tpl-design-card-visual {
    color: #d4b87a;
    background:
        radial-gradient(ellipse 70% 60% at 35% 25%, rgba(201, 169, 110, 0.2), transparent 65%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(150, 130, 100, 0.14), transparent 60%);
}

.tpl-design-card--classic .tpl-design-card-visual {
    color: #b8c4b0;
    background:
        radial-gradient(ellipse 70% 60% at 40% 20%, rgba(140, 160, 145, 0.2), transparent 65%),
        radial-gradient(ellipse 50% 40% at 85% 75%, rgba(201, 169, 110, 0.12), transparent 60%);
}

.tpl-design-card--spotlight .tpl-design-card-visual {
    color: #e0b090;
    background:
        radial-gradient(ellipse 70% 60% at 30% 30%, rgba(200, 120, 80, 0.18), transparent 65%),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(201, 169, 110, 0.14), transparent 60%);
}

.tpl-design-card--signature {
    display: grid;
    gap: 0;
    max-width: 920px;
}

@media (min-width: 800px) {
    .tpl-design-card--signature {
        grid-template-columns: 0.95fr 1.15fr;
        align-items: stretch;
    }

    .tpl-design-card--signature .tpl-design-card-visual {
        padding: 36px 28px;
    }

    .tpl-design-card--signature .tpl-design-card-body {
        padding: 28px 28px 28px 8px;
    }
}

.tpl-design-card--signature .tpl-design-card-visual {
    color: #d4a574;
    background:
        radial-gradient(ellipse 70% 60% at 45% 30%, rgba(180, 120, 80, 0.22), transparent 65%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(201, 169, 110, 0.16), transparent 60%);
}

.tpl-wireframe--signature {
    width: min(100%, 260px);
}

.tpl-wireframe {
    width: min(100%, 220px);
    height: auto;
}

.tpl-design-card:hover .tpl-wireframe {
    filter: drop-shadow(0 0 12px rgba(201, 169, 110, 0.25));
}

.tpl-design-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 8px 24px 24px;
}

.tpl-design-card-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border: 1px solid rgba(201, 169, 110, 0.4);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c9a96e;
}

.tpl-design-card h3 {
    margin: 4px 0 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 34px;
    font-weight: 600;
    color: #fff8f0;
    line-height: 1.1;
}

.tpl-design-card-mood {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(201, 169, 110, 0.9);
}

.tpl-design-card-desc {
    margin: 0;
    color: rgba(244, 239, 230, 0.72);
    font-size: 14px;
    line-height: 1.55;
}

.tpl-design-card-points {
    margin: 4px 0 12px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.tpl-design-card-points li {
    position: relative;
    padding-left: 14px;
    color: rgba(244, 239, 230, 0.58);
    font-size: 13px;
    line-height: 1.4;
}

.tpl-design-card-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 1px;
    background: rgba(201, 169, 110, 0.7);
}

.tpl-design-card-body .btn {
    margin-top: auto;
}

.tpl-designer-more {
    padding-top: 8px;
}

.tpl-designer-more-title {
    margin: 0 0 8px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    color: #fff8f0;
}

.tpl-designer-more-lead {
    margin: 0 0 20px;
    max-width: 52ch;
    color: rgba(244, 239, 230, 0.55);
    font-size: 14px;
    line-height: 1.5;
}

.tpl-design-chip-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

@media (min-width: 700px) {
    .tpl-design-chip-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 640px;
    }
}

.tpl-design-chip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px 16px;
    border: 1px solid rgba(201, 169, 110, 0.16);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(244, 239, 230, 0.75);
}

.tpl-design-chip-icon {
    color: rgba(201, 169, 110, 0.75);
    margin-bottom: 4px;
}

.tpl-design-chip-icon .tpl-wireframe {
    width: 96px;
}

.tpl-design-chip h4 {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff8f0;
}

.tpl-design-chip p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(244, 239, 230, 0.5);
}

.tpl-design-chip-status {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(201, 169, 110, 0.65);
}

.tpl-tier--signature {
    background:
        radial-gradient(ellipse 55% 50% at 88% 12%, rgba(180, 120, 90, 0.2), transparent 55%),
        radial-gradient(ellipse 45% 40% at 10% 80%, rgba(201, 169, 110, 0.12), transparent 50%),
        linear-gradient(180deg, #161310 0%, #100e0c 55%, #14110f 100%);
    border-block: 1px solid rgba(180, 120, 90, 0.2);
}

.tpl-signature-aside {
    border-color: rgba(180, 120, 90, 0.35);
    background:
        linear-gradient(160deg, rgba(180, 120, 90, 0.14), rgba(255, 255, 255, 0.03));
}

@media (prefers-reduced-motion: reduce) {
    .tpl-design-card,
    .tpl-design-card:hover {
        transition: none;
        transform: none;
    }

    .tpl-hero-bloom,
    .tpl-hero-spark {
        animation: none !important;
    }

    .tpl-hero-bloom {
        opacity: 0.7;
    }

    .tpl-hero-spark {
        opacity: 0.25;
    }
}

.tpl-closer {
    padding: clamp(64px, 10vw, 100px) 24px;
    border-top: 1px solid rgba(201, 169, 110, 0.14);
    text-align: center;
    background: #0f0d0b;
}

.tpl-closer-inner {
    max-width: 520px;
    margin: 0 auto;
}

.tpl-closer h2 {
    margin: 0 0 12px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    color: #fff8f0;
}

.tpl-closer p {
    margin: 0 0 24px;
    color: rgba(244, 239, 230, 0.65);
    font-size: 16px;
    line-height: 1.5;
}
