/* ==========================================================================
   Parents Corner shared styles — everything namespaced under pc- so nothing
   bleeds into existing site styles (y2hero-*, sc-*, sh-*).
   Palette: ink navy #14264C · pencil yellow #F5B91E · warm paper #FBFAF6
   ========================================================================== */

:root {
    --pc-ink: #14264C;
    --pc-pencil: #F5B91E;
    --pc-paper: #FBFAF6;
    --pc-mist: #D9DEEA;
    --pc-ink-soft: #3D4E75;
    --pc-line: #E7E3D8;
    --pc-white: #FFFFFF;
    --pc-green: #2E7D4F;
    --pc-red: #B3413A;
    --pc-radius: 14px;
    --pc-shadow: 0 2px 10px rgba(20, 38, 76, 0.08);
    --pc-font-display: 'Fraunces', Georgia, serif;
    --pc-font-body: 'Public Sans', system-ui, sans-serif;
}

/* ---------- page scaffold ---------- */

.pc-main {
    font-family: var(--pc-font-body);
    background: var(--pc-paper);
    color: var(--pc-ink);
    line-height: 1.6;
    padding: 0 20px 64px;
    min-height: 60vh;
}

.pc-wrap {
    max-width: 980px;
    margin: 0 auto;
}

/* styles.css applies generic `section` padding sitewide — neutralize it
   inside Parents Corner so pc- spacing is self-contained. */
.pc-main section {
    padding: 0;
}

.pc-main h1,
.pc-main h2,
.pc-main h3 {
    font-family: var(--pc-font-display);
    font-weight: 650;
    color: var(--pc-ink);
    line-height: 1.18;
}

.pc-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pc-ink-soft);
    margin: 0 0 10px;
}

.pc-lead {
    color: var(--pc-ink-soft);
    font-size: 1.05rem;
    max-width: 42em;
}

.pc-head {
    padding: 40px 0 20px;
    position: relative;
}

.pc-head h1 {
    font-size: clamp(1.8rem, 4.4vw, 2.6rem);
    margin: 0 0 10px;
    max-width: 20em;
}

/* Subtle scantron-bubble decoration, mirrors the homepage hero motif */
.pc-head::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 10px;
    bottom: 0;
    width: 150px;
    background-image: radial-gradient(circle 9px, transparent 7px, rgba(245, 185, 30, 0.22) 8px, transparent 10px);
    background-size: 44px 44px;
    pointer-events: none;
}

@media (max-width: 640px) {
    .pc-head::after { display: none; }
}

.pc-footnote {
    font-size: 0.82rem;
    color: var(--pc-ink-soft);
    border-top: 1px solid var(--pc-line);
    padding-top: 14px;
    margin-top: 40px;
}

.pc-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- breadcrumb strip ---------- */

.pc-strip {
    background: var(--pc-ink);
    color: var(--pc-paper);
    font-family: var(--pc-font-body);
}

.pc-strip-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.pc-crumb a {
    color: var(--pc-pencil);
    text-decoration: none;
    font-weight: 600;
}

.pc-crumb a:hover,
.pc-crumb a:focus-visible {
    text-decoration: underline;
}

.pc-crumb-sep {
    margin: 0 8px;
    opacity: 0.6;
}

.pc-strip-phone {
    color: var(--pc-paper);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.pc-strip-phone:hover,
.pc-strip-phone:focus-visible {
    color: var(--pc-pencil);
}

/* ---------- buttons ---------- */

.pc-btn {
    display: inline-block;
    background: var(--pc-pencil);
    color: var(--pc-ink);
    font-family: var(--pc-font-body);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    padding: 13px 26px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pc-btn:hover,
.pc-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 185, 30, 0.45);
}

.pc-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pc-btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--pc-ink);
    font-family: var(--pc-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid var(--pc-ink);
    border-radius: 10px;
    padding: 11px 22px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.12s ease, color 0.12s ease;
}

.pc-btn-ghost:hover,
.pc-btn-ghost:focus-visible {
    background: var(--pc-ink);
    color: var(--pc-paper);
}

/* ---------- cards ---------- */

.pc-card {
    background: var(--pc-white);
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    padding: 24px;
}

.pc-note {
    background: #FDF6E3;
    border: 1px solid rgba(245, 185, 30, 0.55);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.94rem;
}

/* ---------- lead-capture form (pc-capture.js enhances this markup) ---------- */

.pc-capture {
    background: var(--pc-white);
    border: 1px solid var(--pc-line);
    border-left: 5px solid var(--pc-pencil);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    padding: 26px 26px 22px;
    margin: 36px 0;
}

.pc-capture h2,
.pc-capture h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
}

.pc-capture-sub {
    margin: 0 0 18px;
    color: var(--pc-ink-soft);
    font-size: 0.95rem;
}

.pc-capture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 640px) {
    .pc-capture-grid { grid-template-columns: 1fr; }
}

.pc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pc-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pc-ink);
}

.pc-field input,
.pc-field select {
    font-family: var(--pc-font-body);
    font-size: 1rem;
    color: var(--pc-ink);
    background: var(--pc-white);
    border: 2px solid var(--pc-mist);
    border-radius: 10px;
    padding: 11px 14px;
    min-height: 48px;
}

.pc-field input:focus,
.pc-field select:focus {
    outline: none;
    border-color: var(--pc-pencil);
}

.pc-capture-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pc-capture-privacy {
    font-size: 0.78rem;
    color: var(--pc-ink-soft);
    margin: 12px 0 0;
}

/* Honeypot — hidden from people, present for bots */
.pc-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pc-capture-error {
    color: var(--pc-red);
    font-size: 0.88rem;
    font-weight: 600;
    margin: 10px 0 0;
}

.pc-capture-success {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pc-capture-success-mark {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--pc-pencil);
    color: var(--pc-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.pc-capture-success h3 { margin: 4px 0 6px; }
.pc-capture-success p { margin: 0; color: var(--pc-ink-soft); }

/* ---------- consultation CTA strip (shared page footer partial) ---------- */

.pc-consult,
.pc-main section.pc-consult {
    background: var(--pc-ink);
    color: var(--pc-paper);
    border-radius: var(--pc-radius);
    padding: 28px;
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.pc-consult::after {
    content: "";
    position: absolute;
    right: -30px;
    top: 0;
    bottom: 0;
    width: 160px;
    background-image: radial-gradient(circle 9px, transparent 7px, rgba(245, 185, 30, 0.18) 8px, transparent 10px);
    background-size: 44px 44px;
    pointer-events: none;
}

.pc-consult-text h2 {
    color: var(--pc-paper);
    font-size: 1.35rem;
    margin: 0 0 6px;
}

.pc-consult-text p {
    margin: 0;
    color: var(--pc-mist);
    font-size: 0.95rem;
    max-width: 34em;
}

.pc-consult-text a.pc-consult-phone {
    color: var(--pc-pencil);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pc-consult-text a.pc-consult-phone:hover,
.pc-consult-text a.pc-consult-phone:focus-visible {
    text-decoration: underline;
}

.pc-consult .pc-btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ---------- definition tooltips (pure CSS, used for first-use jargon) ---------- */

.pc-term {
    position: relative;
    border-bottom: 2px dotted var(--pc-pencil);
    cursor: help;
    font-weight: 600;
}

.pc-term::after {
    content: attr(data-def);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: min(300px, 78vw);
    background: var(--pc-ink);
    color: var(--pc-paper);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(20, 38, 76, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 50;
    pointer-events: none;
}

.pc-term:hover::after,
.pc-term:focus::after {
    opacity: 1;
    visibility: visible;
}

/* ---------- generic tables ---------- */

.pc-table-scroll { overflow-x: auto; }

.pc-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--pc-white);
    border: 1px solid var(--pc-line);
    border-radius: 10px;
    font-size: 0.94rem;
}

.pc-table th {
    background: var(--pc-ink);
    color: var(--pc-paper);
    text-align: left;
    font-weight: 600;
    padding: 11px 14px;
}

.pc-table td {
    padding: 11px 14px;
    border-top: 1px solid var(--pc-line);
    vertical-align: top;
}

.pc-table tr:nth-child(even) td { background: var(--pc-paper); }
