/* FUNKKY GIZMO — Home (mock-matched layout) */

html.page-brand,
body.page-brand {
    --fg-blue: #0a2dff;
    --fg-blue-hover: #0823c7;
    --fg-yellow: #ffea00;
    --fg-text: #0a2dff;
    --fg-muted: #3d4a6a;
    --fg-border: #e8eaef;
    --fg-bg: #f8f8f8;
    --fg-card: #f0f0f0;
    --fg-white: #ffffff;
    --home-container: 1280px;
    --radius-md: 12px;
    --radius-lg: 16px;

    color: var(--fg-text);
}

body.page-home,
body.page-about,
body.page-products,
body.page-contact,
body.page-product-detail {
    background: var(--fg-bg) !important;
}

.page-brand .site-header--brand {
    background: var(--fg-white);
    border-bottom: 1px solid var(--fg-border);
    height: 80px;
    box-shadow: none;
    --brand-header-h: 80px;
}

.page-brand .header-inner {
    height: 80px;
    max-width: var(--home-container);
}

.page-brand .brand-logo-img--header {
    height: 52px;
    width: auto;
    max-width: 320px;
}

.page-brand .main-nav {
    gap: 2.5rem;
}

.page-brand .main-nav a {
    color: var(--fg-blue);
    font-size: 0.95rem;
    font-weight: 500;
}

.page-brand .main-nav a:hover,
.page-brand .main-nav a.active {
    color: var(--fg-blue);
}

.page-brand .main-nav a.active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page-brand .nav-brand-badge {
    display: flex;
    flex-shrink: 0;
}

.page-brand .nav-toggle span {
    background: var(--fg-blue);
}

.main-home,
.main-about,
.main-products,
.main-contact,
.main-product-detail,
.main-team {
    background: var(--fg-bg);
}

.main-home .container,
.main-about .container,
.main-products .container,
.main-contact .container,
.main-product-detail .container {
    width: min(100% - 3rem, var(--home-container));
}

.page-brand .eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-muted);
}

/* About (unchanged helpers) */
.brand-page-hero {
    padding: 3rem 0 2rem;
    background: var(--fg-bg);
}

.brand-page-title {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--fg-blue);
}

.brand-page-tagline {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #c9a227;
}

.brand-page-lead {
    margin: 0;
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fg-muted);
}

.brand-page-sub {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    color: var(--fg-muted);
}

.brand-about-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--fg-muted);
}

.brand-about-list strong {
    color: var(--fg-blue);
}

.brand-timeline {
    max-width: 640px;
}

.brand-timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--fg-border);
}

.brand-timeline-year {
    font-weight: 800;
    color: var(--fg-blue);
}

.brand-timeline-item p {
    margin: 0;
    color: var(--fg-muted);
}

/* ─── Hero ─── */
.home-hero {
    padding: 3rem 0 2.5rem;
    background: var(--fg-bg);
}

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2rem 3rem;
    align-items: center;
}

.home-hero-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--fg-blue);
    text-transform: uppercase;
}

.home-hero-subko {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg-blue);
    line-height: 1.55;
}

.home-hero-desc {
    margin: 0 0 1.75rem;
    max-width: 32rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--fg-muted);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-home .arrow {
    font-size: 1rem;
    line-height: 1;
}

.btn-home:hover {
    transform: translateY(-1px);
}

.btn-home-primary {
    background: var(--fg-blue);
    color: #fff;
    border: 2px solid var(--fg-blue);
}

.btn-home-primary:hover {
    background: var(--fg-blue-hover);
    border-color: var(--fg-blue-hover);
}

.btn-home-outline {
    background: var(--fg-white);
    color: var(--fg-blue);
    border: 2px solid var(--fg-blue);
}

.btn-home-outline:hover {
    background: #f5f7ff;
}

/* Hero visual — color blocks */
.home-hero-media {
    position: relative;
}

.home-hero-scene {
    position: relative;
    height: 420px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--fg-white);
    box-shadow: 0 4px 24px rgba(10, 45, 255, 0.06);
}

.scene-surface {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, #ffffff 0%, #f4f5f7 55%, #eceef2 100%);
}

.shape {
    position: absolute;
    border-radius: 6px;
}

.shape-orb {
    width: 38%;
    aspect-ratio: 1;
    left: 6%;
    top: 14%;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, #fff176 0%, var(--fg-yellow) 50%, #e6c200 100%);
    box-shadow: 0 10px 28px rgba(255, 234, 0, 0.4);
}

.shape-orb::after {
    content: "";
    position: absolute;
    left: 30%;
    top: 40%;
    width: 40%;
    height: 16%;
    border-bottom: 3px solid #111;
    border-radius: 0 0 50% 50%;
}

.shape-panel {
    width: 36%;
    height: 48%;
    right: 8%;
    top: 10%;
    background: linear-gradient(165deg, #1b4332 0%, #40916c 55%, #95d5b2 100%);
    border-radius: 6px;
}

.shape-cube {
    width: 13%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255, 234, 0, 0.9), rgba(255, 234, 0, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.shape-cube-1 {
    left: 48%;
    bottom: 26%;
    transform: rotate(-10deg);
}

.shape-cube-2 {
    left: 60%;
    bottom: 20%;
    width: 10%;
    background: linear-gradient(135deg, rgba(220, 230, 255, 0.95), rgba(255, 255, 255, 0.6));
    transform: rotate(8deg);
}

.shape-fabric {
    width: 34%;
    height: 20%;
    left: 4%;
    bottom: 10%;
    background: repeating-conic-gradient(#0a2dff 0% 25%, #ff6b35 0% 50%, #0a2dff 0% 75%, #ff6b35 0% 100%);
    background-size: 14px 14px;
    border-radius: 4px;
}

.shape-rug {
    width: 30%;
    height: 18%;
    right: 6%;
    bottom: 8%;
    background: linear-gradient(135deg, #1d3557, #e9c46a);
    border-radius: 4px;
}

.shape-plinth {
    width: 16%;
    height: 7%;
    left: 42%;
    bottom: 16%;
    background: #222;
}

/* Floating seal — top right */
.home-hero-seal {
    position: absolute;
    top: -8px;
    right: -12px;
    z-index: 3;
}

.home-hero-seal-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--fg-yellow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.home-hero-seal-icon {
    line-height: 0;
}

.brand-logo-img--seal {
    width: 36px !important;
    height: 36px !important;
}

.seal-text {
    font-size: 0.42rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #111;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ─── Service cards (icon left, text right) ─── */
.home-services {
    padding: 1.5rem 0 3rem;
    background: var(--fg-bg);
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-service-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.35rem 1.15rem;
    background: var(--fg-card);
    border: 1px solid #e4e4e4;
    border-radius: var(--radius-lg);
    min-height: 120px;
}

.home-service-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--fg-yellow);
    color: #111;
    display: grid;
    place-items: center;
}

.home-service-body {
    min-width: 0;
}

.home-service-body h3 {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--fg-blue);
    text-transform: uppercase;
    line-height: 1.3;
}

.home-service-body p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--fg-muted);
}

/* ─── Featured objects ─── */
.home-objects {
    padding: 0 0 4rem;
    background: var(--fg-bg);
}

.home-objects-intro {
    margin-bottom: 1.5rem;
    max-width: 360px;
}

.home-objects-title {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--fg-blue);
    text-transform: uppercase;
}

.home-objects-sub {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    color: var(--fg-muted);
}

.home-objects-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fg-blue);
}

.home-objects-link:hover {
    text-decoration: underline;
}

.home-objects-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.85rem;
}

.home-object-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-object-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(10, 45, 255, 0.12);
}

.home-object-visual {
    position: relative;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: flex-end;
}

.home-object-visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 20, 80, 0.72) 0%, transparent 100%);
    pointer-events: none;
}

.home-object-label {
    position: relative;
    z-index: 1;
    padding: 0.85rem 0.65rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1.35;
    text-transform: uppercase;
}

.obj-branding {
    background: linear-gradient(160deg, #5b7cfa 0%, #2d3f8c 45%, #9eb4ff 100%);
}

.obj-goods {
    background: linear-gradient(160deg, #f4a261 0%, #e76f51 40%, #264653 100%);
}

.obj-illustration {
    background: linear-gradient(160deg, #2d6a4f 0%, #52b788 50%, #d8f3dc 100%);
}

.obj-package {
    background: linear-gradient(160deg, #6b5b4a 0%, #a68a64 50%, #ede0d4 100%);
}

.obj-collab {
    background: linear-gradient(160deg, #9d4edd 0%, #e0aaff 50%, #fff3b0 100%);
}

.obj-store {
    background: linear-gradient(160deg, #0a2dff 0%, #48cae4 50%, #ffea00 100%);
}

/* ─── Objects (products list) ─── */
.brand-page-hero-compact {
    padding-bottom: 1.25rem;
}

.brand-breadcrumb {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fg-blue);
}

.brand-breadcrumb:hover {
    text-decoration: underline;
}

.brand-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.brand-filter-btn {
    padding: 0.45rem 1rem;
    border: 1px solid var(--fg-border);
    border-radius: 999px;
    background: var(--fg-white);
    color: var(--fg-blue);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.brand-filter-btn:hover {
    border-color: var(--fg-blue);
}

.brand-filter-btn.active {
    background: var(--fg-blue);
    border-color: var(--fg-blue);
    color: var(--fg-white);
}

.brand-objects-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.brand-object-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--fg-white);
    border: 1px solid var(--fg-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.brand-object-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(10, 45, 255, 0.12);
}

.brand-object-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: flex-end;
}

.brand-object-visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 20, 80, 0.65) 0%, transparent 100%);
    pointer-events: none;
}

.brand-object-label {
    position: relative;
    z-index: 1;
    padding: 0.75rem 0.85rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
}

.brand-pick-label {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    padding: 0.2rem 0.5rem;
    background: var(--fg-yellow);
    color: var(--fg-blue);
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 4px;
}

.brand-object-body {
    padding: 1rem 1.1rem 1.15rem;
}

.brand-object-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fg-blue);
}

.brand-object-tagline {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--fg-muted);
    line-height: 1.45;
}

.brand-object-meta {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fg-blue);
}

.brand-filter-empty {
    text-align: center;
    color: var(--fg-muted);
    padding: 2rem 0;
}

.brand-filter-empty.hidden {
    display: none;
}

/* ─── Object detail ─── */
.brand-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: start;
}

.brand-detail-visual {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    min-height: 280px;
}

.brand-detail-heading {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--fg-blue);
}

.brand-detail-text {
    margin: 0 0 1.5rem;
    line-height: 1.7;
    color: var(--fg-muted);
}

.brand-detail-block h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fg-blue);
}

.brand-detail-meta {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--fg-white);
    border: 1px solid var(--fg-border);
    border-radius: var(--radius-md);
}

.brand-detail-meta-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fg-muted);
}

.brand-detail-meta-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--fg-blue);
}

.brand-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ─── Contact ─── */
.brand-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2.5rem;
    align-items: start;
}

.brand-contact-form {
    padding: 2rem;
    background: var(--fg-white);
    border: 1px solid var(--fg-border);
    border-radius: var(--radius-lg);
}

.brand-form-row {
    margin-bottom: 1.1rem;
}

.brand-form-row label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--fg-blue);
}

.brand-form-row input,
.brand-form-row select,
.brand-form-row textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--fg-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--fg-text);
    background: var(--fg-bg);
}

.brand-form-row input:focus,
.brand-form-row select:focus,
.brand-form-row textarea:focus {
    outline: 2px solid var(--fg-blue);
    outline-offset: 1px;
    border-color: var(--fg-blue);
}

.brand-form-note {
    margin: 0 0 1.25rem;
    font-size: 0.82rem;
    color: var(--fg-muted);
}

.brand-contact-aside {
    padding: 2rem;
    background: var(--fg-card);
    border-radius: var(--radius-lg);
}

.brand-aside-title {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--fg-blue);
}

.brand-aside-title + .brand-aside-title {
    margin-top: 1.75rem;
}

.brand-aside-label {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fg-muted);
}

.brand-aside-instagram {
    margin: 0 0 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fg-blue);
}

.brand-aside-locations {
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand-aside-locations li {
    margin-bottom: 0.85rem;
}

.brand-aside-locations strong {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--fg-blue);
}

.brand-aside-locations span {
    font-size: 0.9rem;
    color: var(--fg-muted);
}

.brand-aside-email,
.brand-aside-hours {
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
    color: var(--fg-muted);
}

/* About feature cards on brand pages */
.page-brand .feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.page-brand .feature-card {
    padding: 1.5rem;
    background: var(--fg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--fg-border);
}

.page-brand .feature-card h3 {
    margin: 0 0 0.65rem;
    color: var(--fg-blue);
    font-size: 1.1rem;
}

.page-brand .feature-card p {
    margin: 0;
    color: var(--fg-muted);
    line-height: 1.6;
}

.page-brand .section {
    padding: 2rem 0 3rem;
}

/* Footer on brand pages */
.page-brand .site-footer {
    background: var(--fg-white);
    border-top: 1px solid var(--fg-border);
}

.page-brand .site-footer h4,
.page-brand .footer-tagline,
.page-brand .logo-en {
    color: var(--fg-blue);
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
    .home-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-objects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 900px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
    }

    .home-hero-scene {
        height: 320px;
    }

    .home-hero-seal {
        top: 0.5rem;
        right: 0.5rem;
    }

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

    .brand-detail-layout,
    .brand-contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-brand .site-header--brand {
        height: 64px;
        --brand-header-h: 64px;
    }

    .page-brand .header-inner {
        height: 64px;
        width: min(100% - 1.5rem, var(--home-container));
        gap: 0.5rem;
    }

    .page-brand .brand-logo-img--header {
        height: 36px;
        max-width: min(52vw, 200px);
    }

    .page-brand .nav-toggle {
        display: flex;
    }

    .page-brand .main-nav {
        display: none;
        position: absolute;
        top: var(--brand-header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1rem 1rem;
        background: var(--fg-white);
        border-bottom: 1px solid var(--fg-border);
        box-shadow: 0 10px 24px rgba(10, 45, 255, 0.08);
        z-index: 99;
    }

    .page-brand .main-nav.open {
        display: flex;
    }

    .page-brand .main-nav a {
        padding: 0.65rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--fg-border);
    }

    .page-brand .main-nav a:last-child {
        border-bottom: none;
    }

    .main-home .container,
    .main-about .container,
    .main-products .container,
    .main-contact .container,
    .main-product-detail .container,
    .main-team .container {
        width: min(100% - 2rem, var(--home-container));
    }

    .brand-page-hero {
        padding: 2rem 0 1.25rem;
    }

    .brand-page-title {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
    }

    .brand-page-lead {
        font-size: 0.95rem;
    }

    .page-brand .section {
        padding: 1.5rem 0 2.5rem;
    }

    .home-services-grid {
        grid-template-columns: 1fr;
    }

    .home-objects-grid,
    .brand-objects-grid-full {
        grid-template-columns: 1fr;
    }

    .page-brand .feature-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        padding: 2rem 0 1.5rem;
    }

    .home-hero-title {
        font-size: 2.1rem;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero-actions .btn-home {
        justify-content: center;
    }

    .home-hero-scene {
        height: 260px;
    }

    .brand-filter {
        gap: 0.4rem;
    }

    .brand-filter-btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.7rem;
    }

    .brand-contact-form,
    .brand-contact-aside {
        padding: 1.25rem;
    }

    .brand-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-detail-actions .btn-home {
        justify-content: center;
    }

    .page-brand .nav-brand-badge {
        display: none;
    }

    .home-hero-seal {
        display: none;
    }

    .page-brand .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
