/* ==========================================================================
   EAAMO Metrics Makerspace — Ghost Theme Styles
   Colors: Navy #182860, Coral #F06B52, Amber #F8C868, Teal #80C8D0
   Fonts: Source Serif 4 (headings), Inter (body)
   ========================================================================== */

/* Ghost custom font variables */
:root {
    --gh-font-heading: 'Source Serif 4', Georgia, serif;
    --gh-font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Ghost editor card widths */
.kg-width-wide {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.kg-width-wide img,
.kg-width-full img {
    width: 100%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    background: #ffffff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #F06B52; text-decoration: none; transition: color 0.2s; }
a:hover { color: #d85a43; }

/* Typography */
h1, h2, h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    color: #182860;
    line-height: 1.2;
}

h1 { font-weight: 600; font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-weight: 600; font-size: 2rem; line-height: 1.25; margin-bottom: 0.75rem; }
h3 { font-weight: 400; font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.5rem; }
h4 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.25rem; line-height: 1.4; color: #182860; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: #182860;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo .site-title-text {
    color: #ffffff;
    font-family: 'Source Serif 4', serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.active,
.nav-current a {
    color: #ffffff;
    border-bottom-color: #F06B52;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s;
}

.hamburger { position: relative; }

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #182860;
    color: #ffffff;
    padding: 3rem 1.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #80C8D0;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ==========================================================================
   Hero Section (Home page)
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #182860 0%, #1e3a7a 100%);
    color: #ffffff;
    padding: 5rem 1.5rem;
    text-align: center;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: #F06B52;
    color: #ffffff;
    border-color: #F06B52;
}

.btn-primary:hover {
    background: #d85a43;
    border-color: #d85a43;
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 4rem 1.5rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt {
    background: #F5F5F5;
}

.section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: #ffffff;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-coral { border-top: 4px solid #F06B52; }
.card-amber { border-top: 4px solid #F8C868; }
.card-teal  { border-top: 4px solid #80C8D0; }

.card h4 { margin-bottom: 0.5rem; }

.card p {
    font-size: 0.875rem;
    color: #555555;
    margin-bottom: 1rem;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.card .read-more {
    font-weight: 600;
    font-size: 0.875rem;
    color: #F06B52;
}

.card .read-more:hover { color: #d85a43; }

/* ==========================================================================
   Page Content
   ========================================================================== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-content h1 {
    margin-bottom: 1.5rem;
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content ul, .page-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content blockquote {
    border-left: 4px solid #F06B52;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #F5F5F5;
    color: #333333;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
}

.breadcrumb a {
    font-size: 0.875rem;
    color: #F06B52;
}

/* Tables */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.page-content th,
.page-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #D0D0D0;
}

.page-content th {
    font-weight: 600;
    color: #182860;
    background: #F5F5F5;
}

/* Theme tags */
.theme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.theme-tag {
    display: inline-block;
    background: #80C8D0;
    color: #182860;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Day columns */
.day-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.day-column {
    background: #F5F5F5;
    padding: 1.5rem;
    border-radius: 8px;
}

.day-column h3 {
    margin-bottom: 1rem;
}

/* Photo gallery */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #182860;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F06B52;
    box-shadow: 0 0 0 3px rgba(240, 107, 82, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #182860;
        padding: 1rem 1.5rem 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-nav.open { display: block; }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: none;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .day-columns {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero { padding: 3rem 1.5rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .section { padding: 3rem 1.5rem; }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
