/*
 * style.css — FoodCare Global Design System
 * ============================================
 * This file is the single source of truth for all visual styles.
 * Structure:
 *   1. Google Fonts Import
 *   2. CSS Custom Properties (Design Tokens)
 *   3. CSS Reset & Base Styles
 *   4. Layout & Grid Utilities
 *   5. Navbar Component
 *   6. Button Components
 *   7. Card & Glassmorphism Components
 *   8. Form Components
 *   9. Status Badge Components
 *  10. Alert / Flash Message
 *  11. Page-specific helper classes
 *  12. Animations & Transitions
 *  13. Responsive Media Queries
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. GOOGLE FONTS
═══════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   These variables are the foundation of the entire design. Changing one
   here propagates the change throughout the whole application.
═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* ── FoodCare Light Color Palette ── */
    --fc-primary:       #FF7A1A;
    --fc-primary-dark:  #E06600;
    --fc-primary-light: #FF9A57;
    --fc-black:         #0B0B0B;
    --fc-white:         #FFFFFF;
    --fc-bg:            #F7F7F8;
    --fc-card:          #FFFFFF;
    --fc-muted:         #4B5563;
    --fc-border:        #E6E6E6;

    /* Map to existing variable names so all pages work without changes */
    --clr-bg:           #F7F7F8;
    --clr-bg-card:      #FFFFFF;
    --clr-surface:      #F0F0F1;
    --clr-surface-2:    #E8E8EA;
    --clr-border:       #E6E6E6;

    /* Brand Colors */
    --clr-primary:      #FF7A1A;
    --clr-primary-dark: #E06600;
    --clr-primary-glow: rgba(255,122,26,0.18);
    --clr-secondary:    #FF9A57;
    --clr-secondary-glow: rgba(255,154,87,0.15);

    /* Semantic Colors */
    --clr-success:      #28A745;
    --clr-success-bg:   rgba(40,167,69,0.10);
    --clr-warning:      #F59E0B;
    --clr-warning-bg:   rgba(245,158,11,0.10);
    --clr-danger:       #E02424;
    --clr-danger-bg:    rgba(224,36,36,0.10);
    --clr-info:         #3B82F6;
    --clr-info-bg:      rgba(59,130,246,0.10);

    /* Text Colors */
    --clr-text:         #0B0B0B;
    --clr-text-muted:   #4B5563;
    --clr-text-faint:   #9CA3AF;

    /* ── Typography ── */
    --font-base:        'Inter', system-ui, sans-serif;
    --font-heading:     'Outfit', 'Inter', sans-serif;

    --text-xs:    0.75rem;
    --text-sm:    0.875rem;
    --text-base:  1rem;
    --text-lg:    1.125rem;
    --text-xl:    1.25rem;
    --text-2xl:   1.5rem;
    --text-3xl:   1.875rem;
    --text-4xl:   2.25rem;
    --text-5xl:   3rem;

    /* ── Spacing ── */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* ── Border Radius ── */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
    --shadow-primary: 0 0 20px var(--clr-primary-glow);

    /* ── Transitions ── */
    --transition-fast:   150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow:   400ms ease;

    /* ── Navbar Height ── */
    --navbar-h: 68px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. CSS RESET & BASE STYLES
═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    font-size: var(--text-base);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--clr-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--clr-primary-dark); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--fc-black);
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. LAYOUT & GRID UTILITIES
═══════════════════════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.page-wrapper {
    padding-top: calc(var(--navbar-h) + var(--space-8));
    padding-bottom: var(--space-16);
}

.grid        { display: grid; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { flex-direction: column; }
.gap-2       { gap: var(--space-2); }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. NAVBAR COMPONENT
═══════════════════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-h);
    background: #FFFFFF;
    border-bottom: 1px solid var(--fc-border);
    transition: background var(--transition-normal);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.navbar__logo {
    width: 36px;
    height: 36px;
    background: var(--fc-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.navbar__name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--fc-black);
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.navbar__link {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    color: var(--fc-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--fc-black);
    background: var(--fc-bg);
}

.navbar__link.active {
    color: var(--fc-primary);
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.navbar__user {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--fc-bg);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--fc-muted);
}

.navbar__avatar {
    width: 28px;
    height: 28px;
    background: var(--fc-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    color: white;
}

/* Mobile hamburger */
.navbar__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    flex-direction: column;
    gap: 5px;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fc-black);
    border-radius: 2px;
    transition: transform var(--transition-normal), opacity var(--transition-fast);
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. BUTTON COMPONENTS
═══════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.625rem var(--space-5);
    border-radius: var(--radius-md);
    font-family: var(--font-base);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
        background    var(--transition-fast),
        box-shadow    var(--transition-fast),
        transform     var(--transition-fast),
        border-color  var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
}

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

.btn--primary {
    background: var(--fc-primary);
    color: #fff;
    border-color: var(--fc-primary);
}
.btn--primary:hover {
    background: var(--fc-primary-dark);
    border-color: var(--fc-primary-dark);
    color: #fff;
}

/* Admin / dark button */
.btn--admin {
    background: var(--fc-black);
    color: #fff;
    border-color: var(--fc-black);
}
.btn--admin:hover {
    background: #1A1A1A;
    border-color: #1A1A1A;
    color: #fff;
}

.btn--secondary {
    background: var(--fc-white);
    color: var(--fc-black);
    border-color: var(--fc-border);
}
.btn--secondary:hover {
    background: var(--fc-bg);
    border-color: #ccc;
    color: var(--fc-black);
}

.btn--ghost {
    background: transparent;
    color: var(--fc-primary);
    border-color: var(--fc-primary);
}
.btn--ghost:hover {
    background: var(--clr-primary-glow);
    color: var(--fc-primary-dark);
}

.btn--danger {
    background: var(--clr-danger-bg);
    color: var(--clr-danger);
    border-color: rgba(224,36,36,0.3);
}
.btn--danger:hover {
    background: rgba(224,36,36,0.2);
    color: var(--clr-danger);
}

.btn--sm {
    padding: 0.375rem var(--space-3);
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
}

.btn--lg {
    padding: 0.875rem var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

.btn--full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   7. CARD & GLASSMORPHISM COMPONENTS
═══════════════════════════════════════════════════════════════════════════ */
.card {
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    border-color: #d0d0d0;
    box-shadow: var(--shadow-md);
}

.card--glass {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.card--highlight {
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-primary);
}

/* Stat Card */
.stat-card {
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card__icon--primary  { background: var(--clr-primary-glow); }
.stat-card__icon--success  { background: var(--clr-success-bg); }
.stat-card__icon--warning  { background: var(--clr-warning-bg); }
.stat-card__icon--danger   { background: var(--clr-danger-bg); }
.stat-card__icon--info     { background: var(--clr-info-bg); }

.stat-card__value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1;
    color: var(--clr-text);
}

.stat-card__label {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    margin-top: var(--space-1);
}

/* Product Card */
.product-card {
    background: var(--fc-card);
    border: 2px solid var(--fc-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.product-card:hover,
.product-card.selected {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px rgba(255,122,26,0.15);
    transform: translateY(-3px);
}

.product-card.selected { background: rgba(255,122,26,0.06); }

.product-card__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.product-card__name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--clr-text);
}

/* Page Header */
.page-header {
    margin-bottom: var(--space-8);
}

.page-header__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--fc-black);
}

.page-header__subtitle {
    color: var(--fc-muted);
    margin-top: var(--space-2);
    font-size: var(--text-base);
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. FORM COMPONENTS
═══════════════════════════════════════════════════════════════════════════ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--fc-black);
}

.form-label .required {
    color: var(--clr-danger);
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem var(--space-4);
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-md);
    color: var(--fc-black);
    font-family: var(--font-base);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--clr-text-faint);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px rgba(255,122,26,0.15);
    background: var(--fc-white);
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b92a5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 2.5rem;
}

.form-select option {
    background: var(--clr-surface);
    color: var(--clr-text);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--clr-danger);
}

/* File Upload Drop Zone */
.upload-zone {
    border: 2px dashed var(--fc-border);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--fc-bg);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--fc-primary);
    background: rgba(255,122,26,0.04);
}

.upload-zone__icon { font-size: 2rem; margin-bottom: var(--space-3); }
.upload-zone__text { color: var(--clr-text-muted); font-size: var(--text-sm); }
.upload-zone input[type="file"] { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   9. STATUS BADGE COMPONENTS
═══════════════════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge--new        { color: var(--clr-info);    background: var(--clr-info-bg); }
.badge--progress   { color: var(--clr-warning);  background: var(--clr-warning-bg); }
.badge--resolved   { color: var(--clr-success);  background: var(--clr-success-bg); }
.badge--closed     { color: var(--clr-text-muted); background: rgba(139,146,165,0.12); }

.badge--high   { color: var(--clr-danger);  background: var(--clr-danger-bg); }
.badge--medium { color: var(--clr-warning); background: var(--clr-warning-bg); }
.badge--low    { color: var(--clr-success); background: var(--clr-success-bg); }

/* ═══════════════════════════════════════════════════════════════════════════
   10. ALERT / FLASH MESSAGE
═══════════════════════════════════════════════════════════════════════════ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid transparent;
    animation: slideDown 0.3s ease;
    position: relative;
    margin-bottom: var(--space-5);
}

.alert--success { background: var(--clr-success-bg); color: var(--clr-success); border-color: rgba(34,197,94,0.25); }
.alert--error   { background: var(--clr-danger-bg);  color: var(--clr-danger);  border-color: rgba(239,68,68,0.25); }
.alert--warning { background: var(--clr-warning-bg); color: var(--clr-warning); border-color: rgba(245,158,11,0.25); }
.alert--info    { background: var(--clr-info-bg);    color: var(--clr-info);    border-color: rgba(59,130,246,0.25); }

.alert__close {
    margin-left: auto;
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    opacity: 0.7;
    font-size: 1rem;
    padding: 0 var(--space-1);
    flex-shrink: 0;
}
.alert__close:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   11. TABLE COMPONENT
═══════════════════════════════════════════════════════════════════════════ */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--fc-border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.table thead {
    background: var(--fc-bg);
}

.table th {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fc-muted);
    white-space: nowrap;
}

.table td {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--fc-border);
    color: var(--fc-black);
    vertical-align: middle;
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--fc-bg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. TIMELINE (for complaint tracking)
═══════════════════════════════════════════════════════════════════════════ */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: var(--space-4);
}

.timeline-item {
    display: flex;
    gap: var(--space-5);
    padding-bottom: var(--space-8);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 12px;
    bottom: 0;
    width: 2px;
    background: var(--clr-border);
}

.timeline-item:last-child::before { display: none; }

.timeline-item__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--clr-border);
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    left: -26px;
    margin-right: -12px;
    transition: background var(--transition-normal);
}

.timeline-item--active .timeline-item__dot { background: var(--clr-primary); box-shadow: 0 0 8px var(--clr-primary-glow); }
.timeline-item--done   .timeline-item__dot { background: var(--clr-success); }

/* ═══════════════════════════════════════════════════════════════════════════
   13. ANIMATIONS & TRANSITIONS
═══════════════════════════════════════════════════════════════════════════ */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.animate-fade-in { animation: fadeIn 0.4s ease; }

/* ═══════════════════════════════════════════════════════════════════════════
   14. FOOTER
═══════════════════════════════════════════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--fc-border);
    padding: var(--space-8) 0;
    text-align: center;
    color: var(--fc-muted);
    font-size: var(--text-sm);
    background: var(--fc-white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   15. RESPONSIVE MEDIA QUERIES
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .navbar__links {
        display: none;
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-bottom: 1px solid var(--fc-border);
        flex-direction: column;
        padding: var(--space-4);
        gap: var(--space-2);
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }

    .navbar__links.open { display: flex; }
    .navbar__toggle { display: flex; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .container  { padding-inline: var(--space-4); }

    .page-header__title { font-size: var(--text-2xl); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. SITE FOOTER
═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--fc-white, #ffffff);
    border-top: 1px solid var(--fc-border, #E6E6E6);
    padding: 1.25rem 0;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer__copy {
    font-size: 0.8125rem;
    color: var(--fc-muted, #4B5563);
    font-family: var(--font-base, 'Inter', sans-serif);
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-footer__links a {
    font-size: 0.8125rem;
    color: var(--fc-muted, #4B5563);
    text-decoration: none;
    font-family: var(--font-base, 'Inter', sans-serif);
    transition: color 0.15s ease;
}

.site-footer__links a:hover {
    color: var(--fc-black, #0B0B0B);
}

/* Make sure pages that use flexbox column stretch footer to bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main, .page-wrapper, .lp-wrap, .reg-wrap {
    flex: 1;
}
