/* ─── Self-hosted Fonts ─────────────────────────────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/inter-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/montserrat-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/montserrat-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/montserrat-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/montserrat-700.woff2') format('woff2');
}

/* ─── Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ─── Base (mobile-first: 320px+) ───────────────────── */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #333333;
    background: #FFFFFF;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

/* ─── Container ─────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ─── Navbar ─────────────────────────────────────────── */
.navbar {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.28), transparent 40%),
        linear-gradient(135deg, #EAF2F4 0%, #D9EDE7 40%, #CFE8EC 70%, #DDE9F2 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar.navbar-logo-only {
    position: absolute;
    inset: 0 0 auto 0;
    background: none;
    border: none;
    box-shadow: none;
    padding: 1rem 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar.navbar-logo-only .container {
    max-width: none;
    padding-left: 7%;
}

.logo {
    margin: 0;
    padding: 0;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: #0A1B3A;
}

.logo a {
    text-decoration: none;
    cursor: pointer;
    display: block;
}

.logo img {
    display: block;
    height: clamp(2.75rem, 5vw, 4.5rem);
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-weight: 400;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0A1B3A;
}

/* ─── Hero Section ───────────────────────────────────── */
.landing-hero-full {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Background image layer */
.landing-hero-full .landing-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.landing-hero-full .hero-photo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.landing-hero-full .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* ─── Hero Content (overlay) ─────────────────────────── */
.landing-hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(5rem, 12vw, 6.5rem) 1rem 1rem;
}

.landing-copy {
    position: relative;
    z-index: 20;
    width: min(92vw, 40rem);
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.88rem, 1.4vw + 0.4rem, 1.76rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #0A1B3A;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 0.8vw + 0.3rem, 1.1rem);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: #333;
}

/* ─── Signup Card ────────────────────────────────────── */
.landing-hero .hero-card {
    background: #FFFFFF;
    color: #2E2E2E;
    border-radius: 0.875rem;
    padding: clamp(0.75rem, 0.8vw + 0.2rem, 1rem) clamp(1rem, 1vw + 0.3rem, 1.5rem);
    box-shadow: 0 18px 40px rgba(24, 16, 70, 0.12);
    position: relative;
    z-index: 30;
    margin-top: 1rem;
}

.landing-hero .hero-signup {
    width: 100%;
    max-width: clamp(18rem, 18vw + 4rem, 22.5rem);
    margin-left: auto;
    margin-right: auto;
}

.landing-hero .hero-signup h2 {
    font-size: clamp(0.95rem, 0.8vw + 0.4rem, 1.5rem);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.landing-hero .hero-signup p {
    font-size: clamp(0.75rem, 0.5vw + 0.35rem, 0.9rem);
    color: #666;
    margin-bottom: 0.5rem;
}

.landing-form {
    display: grid;
    gap: 0.5rem;
}

.landing-form label span {
    display: none;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.25rem;
}

.landing-form input {
    width: 100%;
    border: 1px solid #E2E2E2;
    border-radius: 0.625rem;
    padding: clamp(0.4rem, 0.4vw + 0.15rem, 0.6rem) 0.75rem;
    font-size: clamp(0.82rem, 0.4vw + 0.4rem, 0.95rem);
    font-family: 'Inter', sans-serif;
}

.landing-form input:focus {
    outline: none;
    border-color: #6A5BFF;
}

.landing-form .btn-primary {
    width: 100%;
    margin-top: 0.25rem;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
}

.consent-check input[type="checkbox"] {
    width: auto;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: #257eb7;
}

.consent-check span {
    display: inline !important;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
}

.consent-check a {
    color: #257eb7;
    text-decoration: underline;
}

.consent-check a:hover {
    color: #1b6696;
}

.legal-line {
    font-size: clamp(0.5rem, 0.3vw + 0.2rem, 0.6rem);
    color: #888;
    text-align: center;
    line-height: 1.5;
    margin-top: 0.25rem;
}

.legal-line a {
    color: #257eb7;
    text-decoration: underline;
}

.legal-line a:hover {
    color: #1b6696;
}

.landing-message:empty {
    display: none;
}

.landing-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #4A4A4A;
    text-align: center;
}

/* ─── Bottom Banner ──────────────────────────────────── */
.hero-banner-bottom {
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 2;
    background: linear-gradient(to right,
            rgba(245, 238, 228, 0) 0%,
            rgba(245, 238, 228, 0.88) 18%,
            rgba(245, 238, 228, 0.95) 50%,
            rgba(245, 238, 228, 0.88) 82%,
            rgba(245, 238, 228, 0) 100%);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding: 0.75rem 0;
    border-top: 1px solid rgba(180, 160, 130, 0.15);
}

.hero-banner-bottom .container {
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    text-align: center;
}

.banner-subtitle {
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    color: #3a3a3a;
    font-weight: 400;
    margin: 0;
    font-family: 'Inter', sans-serif;
    width: 100%;
    text-align: center;
}

.banner-features {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
}

.banner-feature {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    font-size: clamp(0.7rem, 1.6vw, 0.85rem);
    color: #2a2a2a;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    flex: 0 1 auto;
}

.feature-icon {
    width: clamp(1rem, 2.5vw, 1.25rem);
    height: clamp(1rem, 2.5vw, 1.25rem);
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.feature-text {
    font-size: clamp(0.7rem, 1.6vw, 0.85rem);
    line-height: 1.3;
    color: #2a2a2a;
    font-family: 'Inter', sans-serif;
}

.banner-copyright {
    font-size: clamp(0.55rem, 0.4vw + 0.2rem, 0.7rem);
    color: #3a3a3a;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: #257eb7;
    color: white;
    border-radius: 0.5rem;
}

.btn-primary:hover {
    background: #1b6696;
    color: white;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #eee;
    border-color: #ccc;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* ─── Breakpoint: 768px (tablet) ─────────────────────── */
@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .landing-hero-full .hero-photo img {
        object-fit: cover;
        object-position: center center;
    }

    .landing-hero-content {
        padding: 6.5rem 1.5rem 1rem;
    }

    .hero-banner-bottom {
        padding: 1rem 0;
    }

    .hero-banner-bottom .container {
        gap: 0.6rem;
    }

    .banner-features {
        display: grid;
        grid-template-columns: repeat(3, max-content);
        gap: 2rem;
        justify-content: center;
        width: fit-content;
        max-width: 100%;
        margin: 0 auto;
    }

    .banner-feature {
        justify-content: center;
    }
}

/* ─── Breakpoint: 1024px (desktop) ───────────────────── */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .landing-hero-content {
        padding: 5.5rem 2rem 1rem;
    }

    .landing-copy {
        width: min(80vw, 42rem);
    }

    .banner-features {
        gap: 2.5rem;
    }
}

/* ─── Breakpoint: 1440px (wide) ──────────────────────── */
@media (min-width: 1440px) {
    .landing-hero-content {
        padding: 6rem 2rem 1rem;
    }

    .landing-copy {
        width: min(70vw, 44rem);
    }
}

/* ─── Short viewports (laptops, small screens) ───────── */
@media (max-height: 700px) and (min-width: 768px) {
    .navbar.navbar-logo-only {
        padding: 0.5rem 0;
    }

    .logo img {
        height: clamp(2rem, 3.5vw, 3.25rem);
    }

    .landing-hero-content {
        padding: clamp(3rem, 5vh, 4rem) 1.5rem 0.75rem;
    }

    .hero-title {
        font-size: clamp(0.85rem, 1.2vw + 0.3rem, 1.5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.72rem, 0.7vw + 0.2rem, 0.95rem);
        margin-bottom: 0.75rem;
    }

    .landing-hero .hero-card {
        padding: clamp(0.5rem, 1vh, 0.75rem) clamp(0.85rem, 1.5vw, 1.25rem);
        margin-top: 0.5rem;
    }

    .landing-hero .hero-signup {
        max-width: clamp(16rem, 14vw + 3rem, 20rem);
    }

    .landing-hero .hero-signup h2 {
        font-size: clamp(0.85rem, 0.7vw + 0.3rem, 1.1rem);
    }

    .landing-hero .hero-signup p {
        font-size: clamp(0.6rem, 0.45vw + 0.18rem, 0.75rem);
        margin-bottom: 0.3rem;
    }

    .landing-form {
        gap: 0.3rem;
    }

    .landing-form input {
        padding: clamp(0.3rem, 0.5vh, 0.45rem) 0.7rem;
        font-size: clamp(0.78rem, 0.5vw + 0.25rem, 0.88rem);
    }

    .btn {
        padding: clamp(0.3rem, 0.5vh, 0.45rem) 0.9rem;
        font-size: clamp(0.78rem, 0.5vw + 0.25rem, 0.86rem);
    }

    .hero-banner-bottom {
        padding: 0.5rem 0;
    }

    .hero-banner-bottom .container {
        gap: 0.25rem;
    }
}

/* ─── Furniture Grid (other pages) ──────────────────── */
.furniture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(12.5rem, 100%), 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .furniture-grid {
        grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr));
        gap: 1.5rem;
    }
}

.furniture-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.furniture-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.furniture-card img {
    width: 100%;
    height: 17.5rem;
    object-fit: cover;
    background: #f5f5f5;
    display: block;
}

.furniture-card-content {
    padding: 0.75rem;
}

.furniture-card h3 {
    color: #333333;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.furniture-card .category {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.furniture-card .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

/* ─── Filter Section (other pages) ──────────────────── */
.filter-section {
    background: #F7F7F5;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.filter-section .container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-section input[type="text"],
.filter-section select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: white;
    flex: 1;
    min-width: 0;
}

.filter-section input[type="text"]:focus,
.filter-section select:focus {
    outline: none;
    border-color: #0A1B3A;
}

/* ─── Forms (other pages) ────────────────────────────── */
.form-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(10, 27, 58, 0.08);
}

@media (min-width: 768px) {
    .form-section {
        padding: 2rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #CDEFE9;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3AA9C3;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── Inventory (other pages) ────────────────────────── */
.inventory-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(10, 27, 58, 0.08);
}

@media (min-width: 768px) {
    .inventory-section {
        padding: 2rem;
    }
}

.inventory-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s;
}

.inventory-item:last-child {
    border-bottom: none;
}

.inventory-item:hover {
    background: #f8f9fa;
}

@media (min-width: 768px) {
    .inventory-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.inventory-item-info {
    flex: 1;
}

.inventory-item-info h4 {
    margin-bottom: 0.5rem;
}

.inventory-item-info .category {
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.inventory-item-info .price {
    color: #0E4F66;
    font-weight: 600;
}

.inventory-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
    background: #f9f9f9;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid #eee;
}

footer p {
    color: #999;
    font-size: 0.85rem;
}