/* ============================================================
   main.css — Home-specific styles for improveteachingandlearning.com.
   ------------------------------------------------------------
   Shared SBCSS theme (colors, header, footer, container, typography,
   buttons) lives in /css/sbcss-tool.css. This file only covers the
   home-page's own layout: hero intro, resources link list.
   ============================================================ */

:root {
    /* Legacy aliases so any rule in this file that references --blue,
       --blue-dark, etc. continues to resolve. sbcss-tool.css defines
       --sbcss-*. If the home page someday drops these, they can be
       removed. */
    --blue:      var(--sbcss-blue);
    --blue-dark: var(--sbcss-blue-dark);
    --yellow:    var(--sbcss-yellow);
    --light-bg:  var(--sbcss-bg);
    --white:     var(--sbcss-white);
    --text:      var(--sbcss-text);
    --muted:     var(--sbcss-muted);
    --border:    var(--sbcss-border);
}

/* The home page uses .content-wrap as its main wrapper instead of the
   shared .container. Keep its original constrained width (800px) so the
   home reads tight and centered rather than spreading edge-to-edge. */
.content-wrap {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 24px 16px 40px;
    flex: 1;
}

/* Section label between hero card and link list */
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--blue);
    margin: 24px 0 10px;
    border-bottom: none;
    padding-bottom: 0;
    display: block;
}

/* Hero welcome card */
.hero-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 8px;
}

.hero-card h2 {
    font-size: 1.3rem;
    color: var(--blue);
    font-weight: 700;
    margin: 0 0 8px;
    border-bottom: none;
    padding-bottom: 0;
    display: block;
}

.hero-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Feature boxes — only used on some pages */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.feature-card {
    flex: 1 1 calc(33.333% - 7px);
    min-width: 200px;
    background: var(--white);
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 3px solid var(--blue);
}

.feature-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--blue);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Resource link buttons */
.link-grid {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.link-btn {
    display: block;
    padding: 14px 16px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--blue);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.link-btn span.arrow {
    float: right;
    color: var(--muted);
    font-weight: 400;
}

.link-btn:hover {
    border-color: var(--blue);
    background: var(--light-bg);
}

.link-desc {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--muted);
    margin-top: 3px;
}


/* ============================================================
   Homepage redesign — editorial / executive
   ------------------------------------------------------------
   Replaces the original "centered card + link list" with an
   editorial hero (display headline, yellow marker accent on a
   keyword, lede, featured CTA) and a tools grid with custom
   iconography. District Navigator pulled out as a featured
   full-width tile to give the SBCSS-built primary tool clear
   visual primacy over external resources. Brand blue reserved
   for hover/focus and the headline accent.
   ============================================================ */

:root {
    --tk-radius:        16px;
    --tk-radius-sm:     10px;
    --tk-shadow-sm:     0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
    --tk-shadow-md:     0 4px 6px -1px rgba(15, 23, 42, .05), 0 2px 4px -2px rgba(15, 23, 42, .04);
    --tk-border:        #e5e7eb;
    --tk-text:          #0f172a;
    --tk-text-muted:    #64748b;
    --tk-text-soft:     #94a3b8;
    --tk-surface:       #ffffff;
    --tk-bg:            #f6f5f1;
    --tk-accent-soft:   #eff6ff;
    --tk-accent-yellow: rgba(255, 186, 45, .55);
}

/* Soft warm-neutral page background. */
body { background-color: var(--tk-bg); }

.content-wrap {
    max-width: 960px;
    padding: 32px 20px 56px;
}

/* ─── Editorial hero ─── */
.hero { padding: 24px 0 32px; }
.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 12px;
}
.hero-title {
    /* Override sitewide h2 defaults from sbcss-tool.css (yellow border-bottom
       and display:inline-block were producing an orange underline on cream). */
    display: block;
    border-bottom: none;
    padding-bottom: 0;
    font-size: clamp(1.625rem, 2.2vw + .9rem, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--tk-text);
    margin: 0 0 14px;
    max-width: 22ch;
}
.hero-lede {
    font-size: 1rem;
    color: var(--tk-text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 65ch;
}
/* ─── Tools section ─── */
.tools-section { margin-top: 12px; }
.tools-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tk-text-muted);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tk-border);
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-auto-rows: 1fr;  /* all rows the same height = all cards the same height */
    gap: 14px;
}

.tool-tile {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    column-gap: 18px;
    background: var(--tk-surface);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius);
    padding: 20px 22px;
    color: var(--tk-text);
    text-decoration: none;
    box-shadow: var(--tk-shadow-sm);
    transition: border-color .15s, box-shadow .2s, transform .15s, background .15s;
}
.tool-tile:hover {
    border-color: var(--blue);
    box-shadow: var(--tk-shadow-md);
    transform: translateY(-2px);
}
.tool-tile:focus-visible {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(2, 106, 176, .2), var(--tk-shadow-md);
}

.tool-tile-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--tk-accent-soft);
    color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .15s, color .15s, transform .15s;
}
.tool-tile-icon svg { width: 24px; height: 24px; }
.tool-tile:hover .tool-tile-icon {
    background: var(--blue);
    color: #fff;
}

.tool-tile-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tool-tile-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tk-text);
    line-height: 1.3;
}
.tool-tile-desc {
    font-size: 0.84375rem;
    color: var(--tk-text-muted);
    line-height: 1.5;
}
.tool-tile-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tk-text-soft);
}
.tool-tile-meta svg { width: 12px; height: 12px; }

.tool-tile-arrow {
    color: var(--tk-text-soft);
    font-size: 1.125rem;
    font-weight: 400;
    transition: color .15s, transform .15s;
}
.tool-tile:hover .tool-tile-arrow {
    color: var(--blue);
    transform: translate(3px, -3px);
}

/* Featured tile (District Navigator) — same size as siblings, but a subtle
   gradient background and filled-blue icon to mark it as the primary tool. */
.tool-tile-featured {
    background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
    border-color: rgba(2, 106, 176, .25);
}
.tool-tile-featured .tool-tile-icon {
    background: var(--blue);
    color: #fff;
}
.tool-tile-featured:hover .tool-tile-icon {
    background: var(--blue-dark);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .content-wrap { padding: 20px 16px 32px; }
    .hero { padding: 16px 0 24px; }
    .hero-title { max-width: none; }
    .hero-lede { font-size: 0.95rem; }
    .tools-grid { grid-template-columns: 1fr; }
    .tool-tile { padding: 16px 18px; }
}
