/* ========== SPREKTA SITE STYLES ========== */

:root {
    --ink: #1c1917;
    --paper: #fafaf9;
    --cream: #f5f5f0;
    --accent: #0f766e;
    --accent-dark: #0d5d58;
    --accent-light: #ccfbf1;
    --warm-gray: #78716c;
    --warm-gray-light: #a8a29e;
    --border: #e7e5e4;
    --border-light: #f0efed;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Commissioner', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    font-size: 16px;
}

/* ========== NAV ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--warm-gray);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-cta {
    background: var(--ink);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--accent) !important;
    color: white !important;
}

@media (max-width: 700px) {
    .nav-inner {
        padding: 16px 20px;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-links a:not(.nav-cta) {
        display: none;
    }
}

/* ========== PAGE LAYOUT ========== */
.page {
    padding-top: 80px;
    min-height: 100vh;
}

section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-alt {
    background: var(--cream);
    max-width: none;
    margin: 0;
}

.section-alt > .section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-narrow {
    max-width: 900px;
}

@media (max-width: 700px) {
    section {
        padding: 60px 20px;
    }
}

/* ========== TYPOGRAPHY ========== */
h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.5em, 5vw, 4em);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--ink);
}

h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.8em, 3vw, 2.4em);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--ink);
}

h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ink);
}

p {
    margin-bottom: 16px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1em;
    color: var(--warm-gray);
    max-width: 600px;
    margin-bottom: 50px;
}

/* ========== HERO ========== */
.hero {
    padding: 140px 40px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: var(--accent-light);
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25em;
    color: var(--warm-gray);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.2s;
}

.hero-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.hero-note {
    margin-top: 16px;
    font-size: 0.85em;
    color: var(--warm-gray-light);
}

@media (max-width: 700px) {
    .hero {
        padding: 120px 20px 60px;
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--ink);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== CARDS ========== */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.2s;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(15, 118, 110, 0.08);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    color: var(--warm-gray);
    font-size: 0.95em;
    margin-bottom: 0;
}

/* ========== GRIDS ========== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 900px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ========== TABLES ========== */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--cream);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--warm-gray);
    font-weight: 600;
}

td {
    font-size: 0.95em;
}

tr:last-child td {
    border-bottom: none;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

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

.form-inline {
    display: flex;
    gap: 12px;
}

.form-inline input {
    flex: 1;
}

@media (max-width: 500px) {
    .form-inline {
        flex-direction: column;
    }
}

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    padding-left: 32px;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--paper);
}

.timeline-item.future .timeline-dot {
    background: var(--border);
}

.timeline-period {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-item.future .timeline-period {
    color: var(--warm-gray);
}

.timeline-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-desc {
    color: var(--warm-gray);
    font-size: 0.95em;
    margin-bottom: 0;
}

.timeline-tracks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

@media (max-width: 700px) {
    .timeline-tracks {
        grid-template-columns: 1fr;
    }
}

.track {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.track-label {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--warm-gray);
    font-weight: 600;
    margin-bottom: 8px;
}

.track p {
    font-size: 0.85em;
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ========== YEAR CARDS ========== */
.year-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.year-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
}

.year-card.y2::before {
    background: linear-gradient(90deg, var(--accent), #2563eb);
}

.year-card.y3::before {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.year-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--warm-gray);
    font-weight: 600;
    margin-bottom: 8px;
}

.year-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 12px;
}

.year-desc {
    font-size: 0.9em;
    color: var(--warm-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========== SYSTEM BOXES ========== */
.system-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.system-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.system-box ul {
    list-style: none;
}

.system-box li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95em;
    color: var(--ink);
}

.system-box li:last-child {
    border-bottom: none;
}

.system-box li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 12px;
}

.system-highlight {
    background: linear-gradient(135deg, var(--accent-light), #e0f2fe);
    border: none;
}

.system-highlight p {
    font-size: 1.05em;
    color: var(--ink);
    line-height: 1.8;
    margin-bottom: 0;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--ink) 0%, #292524 100%);
    color: white;
    text-align: center;
    padding: 100px 40px;
    max-width: none;
    margin: 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto 40px;
}

.cta-section .form-inline {
    max-width: 500px;
    margin: 0 auto;
}

.cta-section input {
    background: white;
}

.cta-section .btn-primary {
    white-space: nowrap;
}

/* ========== FOOTER ========== */
footer {
    background: var(--ink);
    color: white;
    padding: 60px 40px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.footer-logo {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2em;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    color: rgba(255,255,255,0.4);
    font-size: 0.85em;
}

/* ========== PRIVATE PAGE BANNER ========== */
.private-banner {
    background: var(--accent-light);
    color: var(--accent-dark);
    text-align: center;
    padding: 12px 20px;
    font-size: 0.85em;
    font-weight: 500;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    z-index: 999;
}

.page-private {
    padding-top: 120px;
}

/* ========== PAGE HEADER ========== */
.page-header {
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    margin-bottom: 12px;
}

.page-header p {
    color: var(--warm-gray);
    font-size: 1.1em;
    max-width: 600px;
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .page-header {
        padding: 40px 20px;
    }
}

/* ========== MOBILE POLISH (Sprint 1.4) ========== */
@media (max-width: 500px) {
    .hero {
        padding: 100px 20px 50px;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1.05em;
    }
    
    .nav-inner {
        padding: 12px 16px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .nav-links a:not(.nav-cta) {
        font-size: 0.85em;
    }
    
    section {
        padding: 50px 16px;
    }
    
    .page-header {
        padding: 40px 16px;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    .grid-4, .grid-3, .grid-2 {
        gap: 16px;
    }
    
    .card {
        padding: 24px;
    }
    
    .year-card {
        padding: 20px;
    }
    
    .system-box {
        padding: 24px;
    }
    
    .timeline {
        padding-left: 24px;
    }
    
    .timeline-tracks {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Private page banner */
    .private-banner {
        font-size: 0.75em;
        padding: 10px 16px;
    }
    
    .page-private {
        padding-top: 110px;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
