/* Second To None Arms — Custom Styles */

:root {
    --sto-primary: #1a1a2e;
    --sto-secondary: #16213e;
    --sto-accent: #e94560;
    --sto-warm: #d4a373;
    --sto-light: #f5f5f0;
    --sto-text: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--sto-text);
    background-color: #fff;
}

/* Navbar */
.navbar {
    background-color: var(--sto-primary) !important;
    padding: 0.6rem 1rem;
}

.navbar-brand strong {
    color: #fff;
    font-size: 1.2rem;
}

.navbar-brand i {
    color: var(--sto-accent) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--sto-accent);
}

.btn-nav-login {
    background-color: var(--sto-accent);
    border-color: var(--sto-accent);
    color: #fff !important;
    font-weight: 600;
    border-radius: 3px;
}

.btn-nav-login:hover {
    background-color: #d13350;
    border-color: #d13350;
    color: #fff !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, rgba(22,33,62,0.85) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-sm {
    min-height: 260px;
    padding: 60px 0;
}

.hero-sm h1 {
    font-size: 2.4rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 6px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Announcement cards */
.announcement-card {
    border-left: 4px solid var(--sto-accent);
}

/* Feature cards */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-card i {
    color: var(--sto-accent);
    margin-bottom: 1rem;
}

.feature-card h5 {
    color: var(--sto-primary);
    font-weight: 600;
}

/* Pricing cards */
.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: transform 0.2s, border-color 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--sto-accent);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sto-primary);
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #999;
}

.pricing-card.featured {
    border-color: var(--sto-accent);
    position: relative;
}

.pricing-card.featured .badge-featured {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sto-accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn-primary {
    background-color: var(--sto-primary);
    border-color: var(--sto-primary);
}

.btn-primary:hover {
    background-color: var(--sto-secondary);
    border-color: var(--sto-secondary);
}

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

.btn-accent:hover {
    background-color: #d13350;
    border-color: #d13350;
    color: #fff;
}

.btn-outline-accent {
    border-color: var(--sto-accent);
    color: var(--sto-accent);
}

.btn-outline-accent:hover {
    background-color: var(--sto-accent);
    border-color: var(--sto-accent);
    color: #fff;
}

.btn-warm {
    background-color: var(--sto-warm);
    border-color: var(--sto-warm);
    color: #fff;
}

.btn-warm:hover {
    background-color: #c49363;
    border-color: #c49363;
    color: #fff;
}

/* Portal sidebar */
.portal-sidebar {
    background: var(--sto-primary);
    min-height: calc(100vh - 200px);
    padding: 20px;
    border-right: 1px solid var(--sto-secondary);
}

.portal-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 2px;
}

.portal-sidebar .nav-link:hover,
.portal-sidebar .nav-link.active {
    background: var(--sto-accent);
    color: white;
}

.portal-sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Schedule table */
.schedule-table .morning { border-left: 3px solid #ffc107; }
.schedule-table .afternoon { border-left: 3px solid #17a2b8; }
.schedule-table .evening { border-left: 3px solid #6f42c1; }
.schedule-table .weekend { border-left: 3px solid #28a745; }

/* Admin panel */
.admin-stat-card {
    border-top: 3px solid var(--sto-accent);
    border-radius: 6px;
}

.admin-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--sto-accent);
}

/* Footer */
footer {
    background-color: var(--sto-primary) !important;
    font-size: 0.9rem;
}

footer h6 {
    color: var(--sto-warm);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

footer a:hover {
    color: var(--sto-accent);
    text-decoration: none;
}

/* Login page */
.login-wrapper {
    max-width: 420px;
    margin: 60px auto;
}

.login-wrapper .card {
    border-top: 4px solid var(--sto-accent);
}

/* Info boxes */
.info-box {
    background: var(--sto-light);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

/* Mission stats */
.mission-stat {
    text-align: center;
    padding: 20px;
}

.mission-stat .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sto-accent);
}

.mission-stat .label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Range rules */
.range-rules ol li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
}

.range-rules ol li:last-child {
    border-bottom: none;
}

/* Lane info table */
.lane-table thead {
    background-color: var(--sto-primary);
    color: #fff;
}

.lane-table th,
.lane-table td {
    padding: 10px 16px;
}

/* Contact form */
.contact-form .form-control:focus {
    border-color: var(--sto-accent);
    box-shadow: 0 0 0 0.2rem rgba(233,69,96,0.15);
}

/* Section backgrounds */
.bg-range {
    background-color: var(--sto-light);
}

.bg-dark-navy {
    background-color: var(--sto-primary);
    color: #fff;
}

/* Class cards */
.class-card {
    border-left: 4px solid var(--sto-warm);
}

.class-card .spots-remaining {
    font-weight: 600;
}

.class-card .spots-remaining.spots-low {
    color: var(--sto-accent);
}

.class-card .spots-remaining.spots-ok {
    color: #28a745;
}

/* Text utilities */
.text-accent {
    color: var(--sto-accent) !important;
}

.text-warm {
    color: var(--sto-warm) !important;
}

.text-primary-dark {
    color: var(--sto-primary) !important;
}

/* Error pages */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page .error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--sto-accent);
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 40px 0; min-height: 320px; }
    .hero h1 { font-size: 2rem; }
    .hero-sm { padding: 30px 0; min-height: 180px; }
    .hero-sm h1 { font-size: 1.8rem; }
    .pricing-card { margin-bottom: 1.5rem; }
    .portal-sidebar { min-height: auto; }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 1.7rem; }
    .feature-card { padding: 1.5rem 1rem; }
    .navbar-brand strong { font-size: 1rem; }
}
