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

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --text-dark: #0f172a;
    --text-light: #475569;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===========================
   Header
   =========================== */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--spacing-md) 0;
}

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

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
}

.nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-color);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.secondary-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: var(--primary-color);
    color: white;
}

.btn-small:hover {
    background-color: var(--primary-hover);
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    color: var(--text-dark);
}

/* ===========================
   Features Grid
   =========================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===========================
   Iframe Container
   =========================== */
.iframe-container {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.iframe-header {
    margin-bottom: var(--spacing-sm);
    text-align: right;
}

.iframe-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.iframe-link:hover {
    text-decoration: underline;
}

.project-iframe {
    width: 100%;
    height: 500px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

/* ===========================
   Supply Table
   =========================== */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.supply-table {
    width: 100%;
    border-collapse: collapse;
}

.supply-table thead {
    background-color: var(--bg-light);
}

.supply-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.supply-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.supply-table tbody tr:hover {
    background-color: var(--bg-light);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-available {
    background-color: #d1fae5;
    color: #065f46;
}

.status-reserved {
    background-color: #fef3c7;
    color: #92400e;
}

/* ===========================
   Engagement Steps
   =========================== */
.engagement-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.step-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    filter: brightness(0) invert(1); /* Make logo white for dark background */
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: var(--spacing-xs);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }

    .footer-logo {
        height: 40px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav {
        gap: var(--spacing-sm);
    }

    .nav a {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .secondary-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    /* Responsive table */
    .supply-table thead {
        display: none;
    }

    .supply-table,
    .supply-table tbody,
    .supply-table tr,
    .supply-table td {
        display: block;
        width: 100%;
    }

    .supply-table tr {
        margin-bottom: var(--spacing-md);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
    }

    .supply-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid var(--border-color);
    }

    .supply-table td:last-child {
        border-bottom: none;
    }

    .supply-table td::before {
        content: attr(data-label);
        position: absolute;
        left: var(--spacing-sm);
        font-weight: 600;
        text-align: left;
    }

    .project-iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .nav {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }

    .project-iframe {
        height: 300px;
    }
}
