/* Smith & Cooper Website Styles
   ================================
   Colors from Smith Brand Book:
   - Charcoal: #2D2D2D (primary)
   - Cooper Sage: #7A8B7A (ampersand, accents)
   - Aged Brass: #9A7B4F (accent, sparingly)
   - Off-white: #FDFBF7 (backgrounds)
   - Warm Gray: #E8E4DD (borders, secondary)
*/

/* ===== CSS Reset & Variables ===== */
:root {
    --charcoal: #2D2D2D;
    --cooper-sage: #7A8B7A;
    --aged-brass: #9A7B4F;
    --off-white: #FDFBF7;
    --warm-gray: #E8E4DD;
    --light-gray: #F5F3EF;
    --light-sage: #E8EDE8;
    --text-secondary: #5A5A5A;

    --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

    --max-width: 1200px;
    --content-width: 800px;
}

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

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--charcoal);
    text-decoration: underline;
    text-decoration-color: var(--cooper-sage);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--cooper-sage);
}

/* ===== Layout ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.narrow {
    max-width: var(--content-width);
}

section {
    padding: 5rem 0;
}

section + section {
    border-top: 1px solid var(--warm-gray);
}

/* ===== Header & Navigation ===== */
header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--warm-gray);
    background: var(--off-white);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.wordmark {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--charcoal);
}

.wordmark:hover {
    color: var(--charcoal);
}

.wordmark .amp {
    color: var(--cooper-sage);
    font-style: italic;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

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

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero-wordmark {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-wordmark .amp {
    color: var(--cooper-sage);
    font-style: italic;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cooper-sage);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Section Headers ===== */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cooper-sage);
    margin-bottom: 0.75rem;
}

/* ===== Cards & Portfolio Items ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border: 1px solid var(--warm-gray);
    padding: 2rem;
    transition: border-color 0.2s ease;
}

.card:hover {
    border-color: var(--cooper-sage);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0;
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
}

.status-badge.validating {
    background: var(--light-sage);
    color: var(--cooper-sage);
}

.status-badge.operational {
    background: var(--cooper-sage);
    color: white;
}

.status-badge.internal {
    background: var(--warm-gray);
    color: var(--text-secondary);
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--warm-gray);
}

.from-cooper {
    font-family: var(--font-serif);
    font-size: 0.6875rem;
    font-style: italic;
    color: var(--text-secondary);
}

.from-cooper .amp {
    color: var(--cooper-sage);
}

.card-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-decoration: none;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-link:hover {
    color: var(--cooper-sage);
}

.card-link::after {
    content: '\2192';
}

/* ===== Journey/Stage Diagram ===== */
.journey-diagram {
    background: var(--light-gray);
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.journey-stages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.journey-stage {
    text-align: center;
    flex: 1;
}

.stage-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
}

.stage-number.completed {
    background: var(--charcoal);
    color: var(--off-white);
}

.stage-number.current {
    background: var(--cooper-sage);
    color: white;
}

.stage-number.upcoming {
    background: white;
    border: 2px solid var(--warm-gray);
    color: var(--text-secondary);
}

.stage-label {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cooper-sage);
    margin-bottom: 0.25rem;
}

.stage-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.875rem;
}

.journey-connector {
    flex: 0.5;
    height: 2px;
    background: var(--warm-gray);
    position: relative;
}

.journey-connector.active {
    background: var(--charcoal);
}

/* ===== Process/Model Grid ===== */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.model-item {
    border-left: 3px solid var(--warm-gray);
    padding-left: 1.25rem;
}

.model-item:hover {
    border-color: var(--cooper-sage);
}

.model-number {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cooper-sage);
    margin-bottom: 0.25rem;
}

.model-item h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.model-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--charcoal);
    background: white;
    border: 1px solid var(--warm-gray);
    transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--cooper-sage);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background: var(--cooper-sage);
    color: white;
}

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

.btn-secondary:hover {
    background: var(--charcoal);
    color: var(--off-white);
}

/* ===== Footer ===== */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--warm-gray);
    margin-top: 3rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-wordmark {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-wordmark .amp {
    color: var(--cooper-sage);
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--charcoal);
}

.footer-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--warm-gray);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.footer-meta .from-cooper {
    font-size: 0.75rem;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--text-secondary);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== About Page Specifics ===== */
.about-intro {
    font-size: 1.125rem;
    max-width: 700px;
}

.entry-channels,
.graduation-paths {
    margin-top: 2rem;
}

.channel-item,
.path-item {
    padding: 1.5rem;
    background: var(--light-gray);
    margin-bottom: 1rem;
}

.channel-item h4,
.path-item h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ===== Portfolio Page ===== */
.portfolio-header {
    margin-bottom: 3rem;
}

.product-detail {
    padding: 3rem 0;
}

.product-meta {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-gray);
}

.meta-item {
    flex: 1;
}

.meta-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cooper-sage);
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 0.9375rem;
}

/* ===== Contact Page ===== */
.contact-intro {
    max-width: 600px;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
}

.contact-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--warm-gray);
}

/* ===== Alumni Page ===== */
.alumni-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light-gray);
    max-width: 600px;
    margin: 2rem auto;
}

.alumni-placeholder h2 {
    margin-bottom: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-wordmark {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    section {
        padding: 3rem 0;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--off-white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--warm-gray);
    }

    nav.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .journey-stages {
        flex-direction: column;
        gap: 1.5rem;
    }

    .journey-connector {
        width: 2px;
        height: 24px;
        flex: none;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .model-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .product-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-wordmark {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    header {
        position: relative;
    }

    nav {
        display: none;
    }

    .btn {
        display: none;
    }
}
