/*
 * ┌─────────────────────────────────────────────────────────────────┐
 * │  STEP 3 of 13 — css/layout.css                                  │
 * │                                                                 │
 * │  Structural shells: the container that centers content, the     │
 * │  section wrapper that pads each page block, the hero that       │
 * │  covers the full viewport, the about section layout, and        │
 * │  the footer.                                                    │
 * │                                                                 │
 * │  KEY CONCEPT: CSS Grid vs Flexbox.                              │
 * │  - Flexbox (one axis): use for navigation bars, button groups,  │
 * │    centering a single item, wrapping tag clouds.                │
 * │  - Grid (two axes): use for page-level layouts and card grids   │
 * │    where you control rows AND columns simultaneously.           │
 * │                                                                 │
 * │  The hero uses min-height: 100vh — "at least the full viewport  │
 * │  height" — so it always fills the screen even on short content. │
 * │                                                                 │
 * │  ▶  Next: See css/navigation.css (Step 4)                      │
 * └─────────────────────────────────────────────────────────────────┘
 */

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-light);
    font-size: clamp(0.95rem, 1vw + 0.5rem, 1.1rem);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    padding: clamp(2rem, 5vw, 4rem) var(--spacing-md);
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.8rem);
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
    font-weight: 500;
}

.hero-affiliation {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.3rem);
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.hero-description {
    font-size: clamp(0.95rem, 1vw + 0.5rem, 1.1rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    line-height: 1.8;
}

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

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
    margin-top: var(--spacing-xs);
}

/* ===================================
   About Section
   =================================== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
}

.lead {
    font-size: clamp(1.05rem, 1.5vw + 0.5rem, 1.25rem);
    color: var(--primary-color);
    font-weight: 500;
}

.philosophy {
    background-color: var(--bg-alt);
    padding: var(--spacing-md);
    border-left: 4px solid var(--secondary-color);
    margin-top: var(--spacing-md);
    border-radius: 4px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

.highlight-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.highlight-card h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.highlight-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-lg) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-text p {
    margin-bottom: var(--spacing-xs);
}

.footer-tagline {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links a {
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid white;
    border-radius: 4px;
    transition: background-color var(--transition-fast);
}

.footer-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
