/*
Theme Name: CDI Headstart Pro
Author: Randall Elliott
Version: 1.0
Requires at least: 6.4
*/

/* =========================
   GLOBAL
========================= */

body {
    margin: 0;
    font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #533928;
}

/* Ensure form elements inherit font */
button,
input,
select,
textarea {
    font-family: inherit;
}

/* Headings use Poppins */
h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    margin-top: 0;
}

/* Exact size scale requested */
h1 { font-size: 48pt; }
h2 { font-size: 36pt; }
h3 { font-size: 24pt; }
h4 { font-size: 18pt; }
h5 { font-size: 14pt; }
h6 { font-size: 12pt; }

.container {
    width: 1200px;
    max-width: 95%;
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.site-header {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

/* Main layout */
.container.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo section */
.logo {
    display: flex;
    align-items: center;
    min-width: 150px;
}

/* Ensure logo link is clean */
.custom-logo-link {
    display: inline-block;
    text-decoration: none;
}

/* Logo image sizing */
.custom-logo {
    display: block;
    max-height: 70px;
    width: auto;
}

/* Fallback site title styling */
.site-title {
    color: #046169;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Force header links to teal */
.site-header a {
    color: #046169;
    text-decoration: none;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #046169;
    font-weight: 600;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* =========================
   HERO
========================= */

.hero {
    background: linear-gradient(
                to right,
                rgba(182,225,212,0.95),
                rgba(182,225,212,0.7)
              ),
              url('https://images.unsplash.com/photo-1588072432836-e10032774350?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center right;
    padding: 120px 0;
}

.hero h1 {
    font-size: 48pt; /* Keeps consistent with scale */
    color: #046169;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
}

/* Button */
.btn-primary {
    display: inline-block;
    background: #046169;
    color: #fff;
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    margin-top: 20px;
}

/* =========================
   CARDS
========================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 80px 0;
}

.card {
    background: #ffffff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
}

.card h3 {
    color: #0F968D;
}

/* Section title */
.section-title {
    text-align: center;
    margin: 80px 0 20px;
    font-size: 36pt; /* Matches H2 scale */
    color: #046169;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #E0EBE7;
    padding: 40px 0;
    text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .container.nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36pt;
    }
}