/* LaraSAP storefront home — Steel & Signal */

:root {
    --ink: #14181e;
    --ink-soft: #3a4450;
    --paper: #eef1f4;
    --paper-deep: #e2e7ed;
    --steel: #5c6b7a;
    --signal: #c9850a;
    --signal-deep: #9a6508;
    --white: #ffffff;
    --line: rgba(20, 24, 30, 0.12);
    --shadow: 0 18px 40px rgba(20, 24, 30, 0.12);
    --font-display: "Syne", "Avenir Next", sans-serif;
    --font-body: "Manrope", "Segoe UI", sans-serif;
    --max: 72rem;
    --header-h: 4.25rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(201, 133, 10, 0.08), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(92, 107, 122, 0.14), transparent 50%),
        linear-gradient(180deg, var(--paper) 0%, #f7f8fa 40%, var(--paper-deep) 100%);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--white);
}

.skip-link:focus {
    top: 1rem;
}

.container {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-solid {
    background: rgba(238, 241, 244, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    letter-spacing: -0.03em;
    color: var(--white);
    transition: color 0.3s var(--ease);
}

.site-header.is-solid .brand,
.site-header.is-solid .nav-link,
.site-header.is-solid .nav-toggle {
    color: var(--ink);
}

.brand span {
    color: var(--signal);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--signal);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid transparent;
    background: var(--signal);
    color: var(--ink) !important;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: #e6a31f;
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.site-header.is-solid .nav-toggle {
    border-color: var(--line);
}

.nav-toggle-bars {
    display: block;
    width: 1.15rem;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* Hero */

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    color: var(--white);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.04);
    animation: hero-zoom 12s var(--ease) forwards;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 15, 18, 0.78) 0%, rgba(12, 15, 18, 0.42) 48%, rgba(12, 15, 18, 0.28) 100%),
        linear-gradient(0deg, rgba(12, 15, 18, 0.72) 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}

.hero-brand {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 12vw, 7.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    opacity: 0;
    transform: translateY(1.25rem);
    animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero-brand span {
    color: var(--signal);
}

.hero-title {
    margin: 0 0 0.85rem;
    max-width: 18ch;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(1.25rem);
    animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero-copy {
    margin: 0 0 1.75rem;
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.7vw, 1.125rem);
    opacity: 0;
    transform: translateY(1.25rem);
    animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(1.25rem);
    animation: rise 0.9s var(--ease) 0.55s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.7rem 1.35rem;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--signal);
    color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #e6a31f;
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
    background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
    background: var(--ink);
    color: var(--white);
}

.btn-dark:hover,
.btn-dark:focus-visible {
    background: #242b34;
}

/* Sections */

.section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 2rem;
    max-width: 40rem;
}

.section-kicker {
    margin: 0;
    color: var(--signal-deep);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.section-copy {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Categories */

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (min-width: 720px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.category-link {
    display: grid;
    gap: 0.35rem;
    min-height: 8.5rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
        repeating-linear-gradient(
            -32deg,
            transparent,
            transparent 10px,
            rgba(92, 107, 122, 0.05) 10px,
            rgba(92, 107, 122, 0.05) 11px
        );
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.category-link:hover,
.category-link:focus-visible {
    border-color: rgba(201, 133, 10, 0.55);
    transform: translateY(-2px);
}

.category-link strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.category-link span {
    color: var(--steel);
    font-size: 0.92rem;
}

/* Featured products */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    min-height: 2.4rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    font-weight: 650;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn.is-active,
.filter-btn:hover,
.filter-btn:focus-visible {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.product {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.product[hidden] {
    display: none !important;
}

.product-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #d7dde5;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.product:hover .product-media img,
.product:focus-within .product-media img {
    transform: scale(1.04);
}

.product-body {
    display: grid;
    gap: 0.55rem;
    padding: 1.1rem 1.15rem 1.25rem;
}

.product-meta {
    color: var(--steel);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.product-price {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.product-actions .btn {
    min-height: 2.5rem;
    padding-inline: 0.95rem;
    font-size: 0.92rem;
}

.product-actions .btn-outline {
    border-color: var(--line);
    background: transparent;
    color: var(--ink);
}

.product-actions .btn-outline:hover,
.product-actions .btn-outline:focus-visible {
    border-color: var(--ink);
}

/* Promise */

.promise {
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.45);
}

.promise-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 800px) {
    .promise-grid {
        grid-template-columns: 1.2fr 1fr;
        align-items: end;
        gap: 3rem;
    }
}

.promise-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.promise-list li {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.promise-list strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.promise-list p {
    margin: 0;
    color: var(--ink-soft);
}

/* Newsletter / CTA band */

.cta-band {
    background: var(--ink);
    color: var(--white);
}

.cta-band .section-title {
    color: var(--white);
}

.cta-band .section-copy {
    color: rgba(255, 255, 255, 0.75);
}

.newsletter {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
    max-width: 32rem;
}

@media (min-width: 640px) {
    .newsletter {
        grid-template-columns: 1fr auto;
    }
}

.newsletter input {
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.newsletter-note {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.newsletter-note.is-success {
    color: #d9b15a;
}

/* Footer */

.site-footer {
    padding: 2.5rem 0 2rem;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 720px) {
    .footer-inner {
        grid-template-columns: 1.4fr 1fr 1fr;
        align-items: start;
    }
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.footer-brand span {
    color: var(--signal-deep);
}

.footer-copy {
    margin: 0.5rem 0 0;
    color: var(--ink-soft);
    max-width: 28ch;
}

.footer-label {
    margin: 0 0 0.7rem;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel);
}

.footer-links {
    display: grid;
    gap: 0.45rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--signal-deep);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--steel);
    font-size: 0.88rem;
}

/* Mobile nav */

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 1rem 1rem;
        background: rgba(238, 241, 244, 0.98);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .nav.is-open {
        display: flex;
    }

    .nav-link,
    .nav-cta {
        color: var(--ink) !important;
        padding: 0.85rem 0.25rem;
        border-bottom: 1px solid var(--line);
    }

    .nav-cta {
        margin-top: 0.35rem;
        border: 0;
        justify-content: center;
    }

    .site-header:not(.is-solid) .brand {
        color: var(--white);
    }
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hero-zoom {
    to {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-media img,
    .hero-brand,
    .hero-title,
    .hero-copy,
    .hero-actions,
    .reveal,
    .product-media img {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
