:root {
    --bg: #f4f7fb;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #6b7280;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --danger: #ef4444;
    --success: #16a34a;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

html, body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

/* LAYOUT */

.page {
    flex: 1;
    max-width: 1200px;
    margin: 1.75rem auto 3rem;
    padding: 0 1.25rem;
}

.section {
    margin-bottom: 2.5rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h1,
.section-header h2 {
    font-size: 1.9rem;
    margin-bottom: 0.3rem;
}

.muted {
    color: var(--muted);
    font-size: 0.95rem;
}

/* TOPBAR */

.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    padding-bottom: 0.1rem;
    position: relative;
}

.nav a.active,
.nav a:hover {
    color: var(--accent);
}

.nav a.active::after,
.nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.pill-link {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
}

/* HERO */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.hero-text h1 {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}

.hero-text p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
    background: #ffffff;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* HERO ANNOUNCEMENTS */

.hero-announcements {
    margin-top: 1rem;
}

.hero-announcements h2 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.link-inline {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
}

.link-inline:hover {
    text-decoration: underline;
}

/* ANNOUNCEMENT CARD */

.announcement-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1rem 1.1rem 0.7rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.announcement-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.announcement-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.announcement-meta {
    border-top: 1px solid var(--border);
    padding-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--muted);
}

/* MAP */

.hero-map h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.map-wrapper {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: 260px;
}

/* ANNOUNCEMENTS PAGE */

.announcement-list {
    display: grid;
    gap: 1rem;
}

/* PRODUCTS */

.products-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.filter-group select {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    background: #f9fafb;
    font-size: 0.9rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.85rem;
    background: #e5e7eb;
}

.product-body {
    padding: 0.9rem 1rem 1rem;
}

.product-body h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price {
    font-weight: 600;
}

.price-old {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 0.9rem;
}

.price-sale {
    color: #ef4444;
    font-weight: 600;
}

.sale-badge {
    margin-top: 0.5rem;
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
}

/* PRODUCT MODAL */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-backdrop.active {
    display: flex;
}

.modal {
    background: #ffffff;
    border-radius: 1.2rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

.modal img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.modal-body {
    padding: 1rem 1.2rem 1.2rem;
}

.modal-body h2 {
    margin-bottom: 0.4rem;
}

.modal-body p {
    margin-bottom: 0.6rem;
    color: var(--muted);
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
}

/* SERVICES */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* CONTACT */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.contact-info h2 {
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.contact-info h3 {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.socials a {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--accent);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
}

.contact-map h2 {
    margin-bottom: 0.6rem;
}

.contact-map .map-wrapper {
    height: 240px;
}

/* FOOTER */

.footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.75rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
    background: #ffffff;
}

.footer-links a {
    margin-right: 1rem;
    text-decoration: none;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--accent);
}

/* AUTH / LOGIN */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.auth-box {
    background: var(--bg-card);
    padding: 1.8rem 2rem;
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 360px;
}

.auth-box h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.auth-box form {
    display: grid;
    gap: 0.75rem;
}

.auth-box input {
    border-radius: 0.7rem;
    border: 1px solid var(--border);
    padding: 0.5rem 0.7rem;
    background: #f9fafb;
    color: var(--text);
    font-size: 0.9rem;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.auth-box button {
    margin-top: 0.5rem;
    border-radius: 999px;
    border: none;
    padding: 0.55rem 1.1rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-box button:hover {
    background: #2563eb;
}

.error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* STAFF */

.staff-main {
    max-width: 1000px;
    margin: 2rem auto 3rem;
    padding: 0 1.25rem;
}

.staff-section {
    margin-bottom: 2rem;
}

.staff-section h2 {
    margin-bottom: 0.75rem;
}

.form-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: grid;
    gap: 0.75rem;
}

.form-card label {
    font-size: 0.9rem;
}

.form-card input,
.form-card textarea,
.form-card select {
    border-radius: 0.7rem;
    border: 1px solid var(--border);
    padding: 0.5rem 0.7rem;
    background: #f9fafb;
    color: var(--text);
    font-size: 0.9rem;
    width: 100%;
}

.form-card textarea {
    resize: vertical;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.form-card button {
    margin-top: 0.5rem;
    border-radius: 999px;
    border: none;
    padding: 0.55rem 1.1rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    justify-self: flex-start;
}

.form-card button:hover {
    background: #2563eb;
}

/* FLASH MESSAGES */

.flash {
    padding: 0.6rem 0.9rem;
    border-radius: 0.7rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.flash-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.flash-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* RESPONSIVE */

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

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

@media (max-width: 650px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }
}
