/* Parrot Creek Ranch — Brand: black, white, red */

:root {
    --pc-black: #1a1a1a;
    --pc-black-soft: #2a2a2a;
    --pc-white: #ffffff;
    --pc-cream: #fafafa;
    --pc-red: #c8102e;          /* primary accent */
    --pc-red-dark: #9a0c23;
    --pc-gray-50: #f7f7f7;
    --pc-gray-100: #ececec;
    --pc-gray-200: #d9d9d9;
    --pc-gray-400: #888;
    --pc-gray-600: #555;
    --pc-radius: 6px;
    --pc-shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --pc-shadow: 0 4px 14px rgba(0,0,0,0.08);
    --pc-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--pc-font-sans);
    color: var(--pc-black);
    background: var(--pc-cream);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--pc-red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--pc-black); margin: 0; }

/* ---------- Layout ---------- */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main { padding: 32px 0 64px; min-height: calc(100vh - 140px); }

/* ---------- Header ---------- */

.site-header {
    background: var(--pc-black);
    color: var(--pc-white);
    border-bottom: 4px solid var(--pc-red);
}
.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pc-white);
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: invert(1) brightness(2);
}
.brand__name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.site-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.site-nav__link {
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: var(--pc-radius);
    font-size: 0.95rem;
    text-decoration: none;
}
.site-nav__link:hover { color: var(--pc-white); background: rgba(255,255,255,0.08); text-decoration: none; }
.site-nav__link--disabled { opacity: 0.4; pointer-events: none; }
.site-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-user__name { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--pc-gray-100);
    color: var(--pc-gray-600);
    font-size: 0.85rem;
    padding: 18px 0;
    text-align: center;
}

/* ---------- Page chrome ---------- */

.page-head { margin-bottom: 24px; }
.page-head__title { font-size: 1.8rem; font-weight: 700; }
.page-head__subtitle { color: var(--pc-gray-600); margin-top: 4px; }

.panel {
    background: var(--pc-white);
    border: 1px solid var(--pc-gray-100);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}
.panel__title { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.panel__list { padding-left: 20px; line-height: 1.7; color: var(--pc-gray-600); }
.panel__list strong { color: var(--pc-black); }

/* ---------- Cards (dashboard tiles) ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.card {
    background: var(--pc-white);
    border: 1px solid var(--pc-gray-100);
    border-left: 4px solid var(--pc-red);
    border-radius: var(--pc-radius);
    padding: 20px;
    box-shadow: var(--pc-shadow-sm);
}
.card__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pc-gray-600);
}
.card__value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pc-black);
    margin-top: 8px;
    line-height: 1;
}
.card__hint {
    margin-top: 8px;
    color: var(--pc-gray-400);
    font-size: 0.85rem;
}

/* ---------- Auth pages ---------- */

.auth-body {
    background: var(--pc-cream);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-card {
    background: var(--pc-white);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    border-top: 4px solid var(--pc-red);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}
.auth-card__brand { text-align: center; margin-bottom: 24px; }
.auth-card__logo { width: 80px; height: 80px; object-fit: contain; }
.auth-card__title { font-size: 1.35rem; margin-top: 12px; font-weight: 700; }
.auth-card__subtitle { color: var(--pc-gray-600); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Forms ---------- */

.form { display: flex; flex-direction: column; gap: 6px; }
.form__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pc-black);
    margin-top: 12px;
}
.form__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pc-gray-200);
    border-radius: var(--pc-radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--pc-white);
    color: var(--pc-black);
}
.form__input:focus {
    outline: none;
    border-color: var(--pc-red);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.15);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--pc-radius);
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--pc-red); color: var(--pc-white); border-color: var(--pc-red); }
.btn--primary:hover { background: var(--pc-red-dark); border-color: var(--pc-red-dark); }
.btn--ghost {
    background: transparent;
    color: var(--pc-white);
    border-color: rgba(255,255,255,0.3);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--block { width: 100%; margin-top: 18px; }
.btn--sm { padding: 6px 12px; font-size: 0.85rem; }

/* ---------- Alerts ---------- */

.alert {
    padding: 12px 14px;
    border-radius: var(--pc-radius);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.alert--error { background: #fdecef; color: var(--pc-red-dark); border: 1px solid #f4c2cb; }
.alert--info { background: #eef2f6; color: #354860; border: 1px solid #d3dce5; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .site-header__inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
    .site-nav { order: 3; width: 100%; overflow-x: auto; }
    .site-user { margin-left: auto; }
    .container { padding: 0 16px; }
    .auth-card { padding: 32px 24px; }
    .page-head__title { font-size: 1.4rem; }
}
