/* ========================================================
   TECHNOLOGY FOR LIFE
   RESOURCES PAGE STYLESHEET
   Every page has its own stylesheet.
   ======================================================== */

:root {
    --navy: #17324d;
    --navy-deep: #10263a;
    --blue: #315d7d;
    --gold: #c49a55;
    --cream: #f7f3eb;
    --warm-white: #fffdf9;
    --ink: #26313a;
    --muted: #66727c;
    --line: #d9d5cc;
    --white: #ffffff;
    --shadow: 0 12px 35px rgba(16, 38, 58, 0.10);
    --radius: 14px;
    --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--warm-white); font-family: Arial, Helvetica, sans-serif; font-size: 18px; line-height: 1.7; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.container { width: min(92%, var(--max-width)); margin: 0 auto; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; flex-direction: column; text-decoration: none; min-width: max-content; }
.brand-name { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; }
.brand-tagline { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.site-nav a { color: var(--navy); text-decoration: none; font-size: 0.9rem; font-weight: 700; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--blue)); color: var(--white); padding: clamp(75px, 11vw, 125px) 0; }
.page-hero-content { max-width: 900px; }
.eyebrow, .section-label { margin: 0 0 14px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow { color: #f0d39a; }
.page-hero h1 { max-width: 900px; margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.06; letter-spacing: -0.03em; }
.page-hero p:last-child { max-width: 780px; margin: 0; color: #eef2f5; font-size: clamp(1.05rem, 2vw, 1.3rem); }

.section { padding: clamp(70px, 9vw, 110px) 0; }
.section-label { color: var(--blue); }
.section h2 { margin: 0 0 20px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.15; }
.section p { margin-top: 0; }
.section-heading { max-width: 800px; margin-bottom: 42px; }

.introduction { background: var(--warm-white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px); }
.intro-copy { color: var(--muted); }
.intro-copy p + p { margin-top: 20px; }

.resource-library { background: var(--cream); }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; }
.resource-card > span { display: block; color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 22px; }
.resource-card h3 { margin: 0 0 10px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.resource-card p { margin-bottom: 22px; color: var(--muted); }
.resource-link { display: inline-flex; align-items: center; justify-content: center; margin-top: auto; padding: 11px 18px; border: 2px solid var(--navy); border-radius: 8px; background: var(--navy); color: var(--white); font-size: 0.9rem; font-weight: 800; line-height: 1.3; text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.resource-link:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-1px); }
.resource-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.resource-status { display: inline-block; border: 1px solid var(--line); border-radius: 100px; padding: 5px 10px; color: var(--blue); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; }

.practice { background: var(--white); }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.practice-box { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: clamp(30px, 5vw, 50px); box-shadow: var(--shadow); }
.practice-box .section-label { color: #f0d39a; }
.practice-box h2 { color: var(--white); }
.practice-box p:last-child { margin-bottom: 0; color: #e4ebef; }
.practice-list { border-top: 1px solid var(--line); }
.practice-list div { display: grid; grid-template-columns: minmax(150px, 0.7fr) 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.practice-list strong { color: var(--navy); }
.practice-list span { color: var(--muted); }

.learners { background: var(--cream); }
.learners-inner { max-width: 850px; text-align: center; }
.learners-inner > p:not(.section-label) { color: var(--muted); }
.button { display: inline-block; margin-top: 18px; padding: 13px 22px; border-radius: 8px; background: var(--navy); color: var(--white); font-weight: 800; text-decoration: none; }
.button:hover { background: var(--blue); }

.site-footer { background: var(--navy-deep); color: var(--white); padding: 42px 0; }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer-inner strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.footer-inner p { margin: 4px 0 0; color: #c9d2d9; font-size: 0.9rem; }

@media (max-width: 1050px) {
    .resource-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-grid, .practice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .header-inner { align-items: flex-start; padding: 18px 0; flex-direction: column; }
    .site-nav { justify-content: flex-start; }
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    .site-nav { gap: 4px 14px; }
    .site-nav a { font-size: 0.82rem; }
    .page-hero { padding: 65px 0 75px; }
    .resource-grid { grid-template-columns: 1fr; }
    .resource-card { padding: 24px; }
    .resource-link { width: 100%; }
    .practice-list div { grid-template-columns: 1fr; gap: 3px; }
    .practice-box { padding: 30px 24px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .resource-link { transition: none; }
}
