:root {
    --color-primary: #ff8811;
    /* vibrant orange */
    --color-secondary: #f4d06f;
    /* soft yellow */
    --color-bg: #0f172a;
    /* light cream background */
    --color-accent: #9dd9d2;
    /* minty teal */
    --color-text: #392f5a;
    /* dark purple for text */
    --color-text-light: #6e6790;
    /* lighter purple for subtle text */
    --color-border: #f4d06f;
    /* use soft yellow for subtle borders */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --spacing: 1rem;
    --container-max-width: 1440px;
}

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

body,
html {
    height: 100%;
    width: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}


a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
    outline-offset: 2px;
}

/* Text */

p,
ul,
h1,
h2 {
    color: black;
}

h1,
h2,
h3 {
    color: black;
    margin-bottom: 1rem;
}

p,
li {
    color: black;
}


.spacer-50 {
    height: 100px;
    content: "";
}



/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 5px 0;
    border-radius: 16px;
}

main.container {
    width: 100%;
    height: auto;
    position: relative;
    flex: 1;
}


header .container {
    padding: 5px 10px;
}

/* Site Header */
.site-header {
    position: relative;
}

.site-header>.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--color-primary);
    border-radius: 0;
    background: var(--color-bg);
    flex-wrap: wrap;
    max-width: none;
    position: sticky;
    top: 0;
    margin: 0;
    margin-bottom: 2rem;
    z-index: 10;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-family: 'Space Grotesk', sans-serif;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.logo img {
    width: 50px;
    height: 50px;
}

/* Navigation */
.nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-grow: 1fr;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links,
.user-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.75rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-accent);
    white-space: nowrap;
    padding: 0.4rem 0.6rem;
    transition: background 0.2s;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* Business Selector */
.business-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
}

/* Hamburger menu */
.hamburger-check {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.notification {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f87171;
    /* red for errors */
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease;
}

.notification.success {
    background-color: #34d399;
    /* green */
}

.notification.info {
    background-color: #60a5fa;
    /* blue */
}

.notification.warning {
    background-color: #facc15;
    /* yellow */
    color: #1f2937;
}

.notification.hidden {
    display: none;
}

.hidden {
    display: none !important;
}


/* Buttons */
.btn {
    text-decoration: none !important;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin: 0.4rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

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

.btn-secondary {
    background-color: #e5e7eb;
    color: #111827;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

/* Mobile styles */
@media (max-width: 870px) {
    .hamburger {
        display: flex;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .hamburger-check:checked~.nav {
        max-height: 500px;
        /* Enough to show the menu */
    }

    .nav-left,
    .nav-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-links,
    .user-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-link,
    .business-select {
        width: 100%;
    }
}


.hidden {
    display: none;
}


/* Footer */
.site-footer {
    background-color: var(--color-bg);
    color: #fff8f0;
    padding: 3rem 1.5rem;
    font-size: 0.95rem;
    margin-top: auto;
}

.site-footer p {
    color: white;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}


.footer-brand p {
    max-width: 300px;
    line-height: 1.6;
}

.footer-nav h2 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--color-border);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 0.4rem;
}

.footer-nav ul li a {
    color: #9dd9d2;
    text-decoration: none;
}

.footer-nav ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 3rem;
    text-align: center;
    color: #ccc;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

@media (min-width: 768px) {
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-brand {
        max-width: 300px;
    }
}

.dark-section {
    background-color: var(--color-bg);
    color: white;
}

.dark-section * {
    color: inherit;
}

/* Loading stuff */
.loading-component {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3b82f6;
    font-weight: 600;
    font-size: 1rem;
}

.spinner {
    border: 3px solid #cbd5e1;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



.stripe-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #ccd0d5;
    background-color: white;
    color: #32325d;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.1);
    transition: box-shadow 150ms ease, border-color 150ms ease;
}

.stripe-input:focus {
    outline: none;
    border-color: #0570de;
    box-shadow: 0 0 0 3px #b8d4f0;
}

.prose ul,
.prose ol {
    padding-left: 1.25rem;
    /* Restore indent */
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    list-style-position: outside;
    list-style-type: disc;
    /* decimal for ol if you want */
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    text-align: left;
}

.prose p,
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}