/* ===========================
    COMMON ELEMENTS
   =========================== */
/* ======================================================
   SBOS GLOBAL STYLES
   Uses tokens.css for color variables
   ====================================================== */

/* --------------
   BASE RESET
   -------------- */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    background: var(--bg-page);
    color: var(--text-900);
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
}

.main-content {
    flex: 1;          /* pushes footer down */
    padding: 40px 0;
}

/* Prevent layout jump */
*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* --------------
   TYPOGRAPHY
   -------------- */

p {
    margin: 0 0 1rem 0;
    color: var(--text-700);
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    margin: 1.6rem 0 0.8rem;
    font-weight: 600;
    color: var(--text-900);
}

h1 { font-size: 2.2rem; color: var(--neutral-900); }
h2 { font-size: 1.8rem; color: var(--neutral-800); }
h3 { font-size: 1.45rem; color: var(--neutral-700); }
h4 { font-size: 1.25rem; color: var(--neutral-600); }
h5 { font-size: 1.1rem; color: var(--neutral-500); }
h6 { font-size: 1rem; color: var(--neutral-400); }

/* Link */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* --------------
   FORM ELEMENTS
   -------------- */

input,
textarea,
select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-1);
    background: var(--surface-0);
    color: var(--text-900);
    transition: border var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 var(--focus-ring) var(--primary-100);
}

input:disabled,
textarea:disabled,
select:disabled {
    background: var(--neutral-200);
    color: var(--neutral-500);
    cursor: not-allowed;
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 120px;
}

/* Labels */
label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-800);
    font-weight: 500;
}

/* --------------
   BUTTONS
   -------------- */

button,
input[type="submit"],
.input-submit {
    display: inline-block;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--primary);
    color: var(--neutral-0);
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

button:hover,
input[type="submit"]:hover {
    background: var(--primary-dark);
}

button:disabled,
input[type="submit"]:disabled {
    background: var(--neutral-400);
    cursor: not-allowed;
}

button.secondary {
    background: var(--neutral-300);
    color: var(--text-800);
}

button.secondary:hover {
    background: var(--neutral-400);
}

/* --------------
   SELECT
   -------------- */

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-600) 50%),
        linear-gradient(135deg, var(--text-600) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(1em - 3px),
        calc(100% - 13px) calc(1em - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* --------------
   CARDS / PANELS
   -------------- */

.card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    border: 1px solid var(--border-1);
    transition: var(--transition);
}

.card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-900);
    font-size: 1.25rem;
}

.card p {
    color: var(--text-600);
    line-height: 1.55;
}

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

.panel {
    background: var(--bg-panel);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-2);
}

/* --------------
   UTILITIES
   -------------- */

.text-muted { color: var(--text-600); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.text-info { color: var(--info); }

.bg-danger { background: var(--danger-bg); padding: 0.5rem; border-radius: var(--radius-sm); }
.bg-warning { background: var(--warning-bg); padding: 0.5rem; border-radius: var(--radius-sm); }
.bg-success { background: var(--success-bg); padding: 0.5rem; border-radius: var(--radius-sm); }
.bg-info { background: var(--info-bg); padding: 0.5rem; border-radius: var(--radius-sm); }

/* Layout spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --------------
   FORM GRID
   -------------- */

.form-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-grid.two {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   HEADER
   =========================== */
.site-header {
    background: var(--neutral-100);
    padding: 16px 0;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
}

.nav {
    display: flex;
    gap: 6em;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
}

.theme-toggle {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: var(--neutral-200);
}
.theme-toggle:hover {
    background-color: var(--neutral-600);
}

.main-content {
    padding: 40px 0;
    min-height: 60vh; /* keeps footer from jumping up on empty pages */
    flex: 1;          /* pushes footer down */
    padding: 40px 0;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    padding: 25px 0;
    text-align: center;
    background: var(--neutral-200);
}

/* =======================================================
   SBOS – Hero, Cards, Buttons
   Uses design tokens from token.css
   ======================================================= */


/* -------------------
   Hero Section
   -------------------*/
.super-hero {
    text-align: center;
    color: var(--neutral-900);
}
.super-title {
    font-weight: bold;
    font-size: 10em;
    margin-bottom: .08em;
    line-height: .8em;
}
.super-title-expanded {
    font-size: .8em;
    font-weight: bold;
    transform: scaleX(1.2);
    width: 80%;
    margin: 0 auto;
    letter-spacing: .1em;
}

.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    padding-top: 0;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-900);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0.5rem auto 2rem;
    color: var(--text-600);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* -------------------
   Buttons (SBOS Style)
   -------------------*/

.btn-primary,
.btn-outline {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-lg {
    padding: 0.95rem 1.8rem;
    font-size: 1.15rem;
}

.btn-xl {
    padding: 1.1rem 2rem;
    font-size: 1.25rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--neutral-0);
    box-shadow: var(--shadow-1);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-2);
    color: var(--neutral-50);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-300);
    color: var(--neutral-50);
    border-color: var(--primary-300)
}

/* -------------------
   Features Section
   -------------------*/

.features {
    margin: 4rem auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-900);
}

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

/* .feature-card {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    border: 1px solid var(--border-1);
    transition: var(--transition);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-900);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-600);
    line-height: 1.55;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
} */

/* -------------------
   Call to Action
   -------------------*/

.cta-section {
    text-align: center;
    padding: 4rem 0;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-900);
}

.cta-subtitle {
    color: var(--text-600);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}


/* ======================
    RESPONSIVE DESIGN
   ====================== */
@media screen and (max-width: 550px) {
    .nav {
        gap: 1em;
    }
    .nav-link {
        font-size: .8em;
    }
    .super-title {
        font-size: 5em;
    }
}


