/* ====================================
   Arctic Studio Design System
   Grace Berman, LCSW
   ==================================== */

/* CSS Variables */
:root {
    /* Colors */
    --white: #ffffff;
    --ice: #f7f9fc;
    --slate: #64748b;
    --ink: #0f172a;
    --electric: #0ea5e9;
    --coral: #f97316;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --container-width: 1200px;
    --border-radius: 4px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: 2.25rem;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--electric);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0284c7;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation */
.nav {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-links a {
    color: var(--slate);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

.nav-cta {
    padding: 0.5rem 1rem;
    background: var(--electric);
    color: var(--white) !important;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.nav-cta:hover {
    background: #0284c7;
}

/* Hero Section */
.hero {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.hero-title {
    max-width: 800px;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    max-width: 700px;
    font-size: 1.25rem;
    color: var(--slate);
    margin-bottom: var(--space-2xl);
}

/* Path Selector */
.path-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.path-card {
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: block;
}

.path-card:hover {
    border-color: var(--electric);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

.path-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.path-card h3 {
    color: var(--ink);
    margin-bottom: var(--space-sm);
}

.path-card p {
    color: var(--slate);
    margin-bottom: var(--space-md);
}

.path-arrow {
    display: inline-block;
    color: var(--electric);
    font-weight: 500;
    font-size: 0.9375rem;
}

/* Featured Resources */
.featured-resources {
    padding: var(--space-3xl) 0;
    background: var(--ice);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--slate);
    font-size: 1.125rem;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
}

.resource-card {
    background: var(--white);
    padding: var(--space-lg);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.resource-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.resource-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.resource-type.guide {
    background: #dbeafe;
    color: #1e40af;
}

.resource-type.tool {
    background: #fef3c7;
    color: #92400e;
}

.resource-type.webinar {
    background: #fce7f3;
    color: #9f1239;
}

.resource-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.resource-card p {
    color: var(--slate);
    margin-bottom: var(--space-md);
}

.resource-link {
    color: var(--electric);
    font-weight: 500;
    font-size: 0.9375rem;
}

.resource-link:hover {
    color: #0284c7;
}

/* Topics Section */
.topics-section {
    padding: var(--space-3xl) 0;
}

.ice-bg {
    background: var(--ice);
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--slate);
    margin-bottom: var(--space-2xl);
}

.topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.topic-pill {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.topic-pill:hover {
    background: var(--electric);
    color: var(--white);
    border-color: var(--electric);
}

/* Newsletter Section */
.newsletter {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: var(--space-sm);
}

.newsletter-content > p {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--electric);
}

.newsletter-note {
    font-size: 0.875rem;
    color: var(--slate);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: var(--electric);
    color: var(--white);
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #0284c7;
    color: var(--white);
}

.btn-secondary {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: var(--white);
    color: var(--electric);
    font-weight: 500;
    border-radius: var(--border-radius);
    border: 1px solid var(--electric);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
}

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

/* Footer */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--ink);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.footer p {
    color: #94a3b8;
    font-size: 0.9375rem;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer ul li a {
    color: #94a3b8;
    font-size: 0.9375rem;
}

.footer ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.footer-note {
    font-size: 0.8125rem !important;
    color: #64748b !important;
}

/* Page Header */
.page-header {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--white);
    text-align: center;
}

.page-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--slate);
}

/* Topic Cards (Families Page) */
.topic-cards {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.topic-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: var(--space-xl);
}

.topic-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.topic-emoji {
    font-size: 2rem;
}

.topic-card > p {
    color: var(--slate);
    margin-bottom: var(--space-lg);
}

.topic-resources {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.topic-resources li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
}

.topic-resources li a {
    color: var(--ink);
    flex: 1;
}

.topic-resources li a:hover {
    color: var(--electric);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.badge.guide {
    background: #dbeafe;
    color: #1e40af;
}

.badge.tool {
    background: #fef3c7;
    color: #92400e;
}

.badge.webinar {
    background: #fce7f3;
    color: #9f1239;
}

/* Teen Callout */
.teen-callout {
    padding: var(--space-3xl) 0;
}

.callout-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.callout-intro {
    font-size: 1.125rem;
    color: var(--slate);
    margin-bottom: var(--space-xl);
}

.teen-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.teen-resource {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    display: block;
    text-align: left;
    transition: all 0.3s ease;
}

.teen-resource:hover {
    border-color: var(--coral);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.teen-resource h4 {
    color: var(--ink);
    margin-bottom: var(--space-sm);
}

.teen-resource p {
    color: var(--slate);
    margin-bottom: 0;
}

/* Help Section */
.help-section {
    padding: var(--space-3xl) 0;
}

.help-box {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--ice);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    text-align: center;
}

.help-box h3 {
    margin-bottom: var(--space-md);
}

.help-box p {
    margin-bottom: var(--space-lg);
}

/* Professionals Page */
.featured-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.featured-content {
    max-width: 900px;
    margin: 0 auto;
}

.featured-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--coral);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius);
    margin-bottom: var(--space-md);
}

.featured-intro {
    font-size: 1.125rem;
    color: var(--slate);
    margin-bottom: var(--space-xl);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.featured-item {
    padding: var(--space-lg);
    background: var(--ice);
    border-radius: var(--border-radius);
}

.featured-item h4 {
    margin-bottom: var(--space-sm);
}

.featured-item p {
    color: var(--slate);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.text-link {
    color: var(--electric);
    font-weight: 500;
    font-size: 0.9375rem;
}

.text-link:hover {
    color: #0284c7;
}

/* Training Section */
.training-section {
    padding: var(--space-3xl) 0;
}

.training-grid {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.training-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: var(--space-xl);
}

.training-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.training-format {
    padding: 0.375rem 0.875rem;
    background: var(--electric);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    white-space: nowrap;
}

.training-card > p {
    color: var(--slate);
    margin-bottom: var(--space-lg);
}

.training-details {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
}

.training-details li {
    color: var(--slate);
    margin-bottom: var(--space-sm);
    list-style: disc;
}

/* Programs Section */
.programs-section {
    padding: var(--space-3xl) 0;
}

.programs-grid {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.program-card {
    background: var(--ice);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: var(--space-xl);
}

.program-card h3 {
    margin-bottom: var(--space-md);
}

.program-card > p {
    color: var(--slate);
    margin-bottom: var(--space-lg);
}

.program-outcomes {
    margin-bottom: var(--space-lg);
}

.program-outcomes h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.program-outcomes ul {
    padding-left: var(--space-md);
}

.program-outcomes li {
    color: var(--slate);
    margin-bottom: var(--space-sm);
    list-style: disc;
}

/* Writing Section */
.writing-section {
    padding: var(--space-3xl) 0;
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.writing-item {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: var(--space-lg);
}

.writing-venue {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.writing-item h4 {
    margin-bottom: var(--space-sm);
}

.writing-item p {
    color: var(--slate);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

/* Collaboration Section */
.collaboration-section {
    padding: var(--space-3xl) 0;
}

.collaboration-box {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--ice);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    text-align: center;
}

.collaboration-box h3 {
    margin-bottom: var(--space-md);
}

.collaboration-box p {
    margin-bottom: var(--space-lg);
}

/* About Page */
.credentials-section {
    padding: var(--space-3xl) 0 var(--space-xl);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.credential-item h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.credential-item ul {
    padding-left: var(--space-md);
}

.credential-item li {
    color: var(--slate);
    margin-bottom: var(--space-sm);
    list-style: disc;
}

/* Bio Section */
.bio-section {
    padding: var(--space-3xl) 0;
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
}

.bio-content h2 {
    margin-bottom: var(--space-lg);
}

.bio-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.bio-content p {
    color: var(--slate);
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* Positions Section */
.positions-section {
    padding: var(--space-3xl) 0;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.position-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: var(--space-xl);
}

.position-title {
    color: var(--electric);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

/* Approach Section */
.approach-section {
    padding: var(--space-3xl) 0;
}

.approach-content {
    max-width: 1000px;
    margin: 0 auto;
}

.approach-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.principle {
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
}

.principle h4 {
    margin-bottom: var(--space-md);
}

.principle p {
    color: var(--slate);
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    padding: var(--space-3xl) 0;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    margin-bottom: var(--space-md);
}

.contact-email {
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
}

.contact-email a {
    color: var(--electric);
    font-weight: 600;
}

.contact-note {
    padding: var(--space-lg);
    background: var(--ice);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xl);
}

.contact-note p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.social-link {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    color: var(--ink);
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--electric);
    color: var(--white);
    border-color: var(--electric);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --space-3xl: 4rem;
        --space-2xl: 3rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .nav-container {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .path-selector,
    .resource-grid,
    .topic-grid,
    .writing-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .training-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .topic-resources li {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle,
    .page-subtitle {
        font-size: 1.0625rem;
    }

    .path-card,
    .topic-card,
    .training-card,
    .program-card {
        padding: var(--space-lg);
    }
}
