/*
Theme Name: Cadman Enterprise
Author: Cadman Enterprise
Description: Accessible education theme with audio learning, guided AI support, and inclusive resources.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: cadman-enterprise
*/
:root {
    --ink: #173f3b;
    --teal: #16564c;
    --cream: #f8f7f2;
    --paper: #ffffff;
    --muted: #51645e;
    --line: #d7dfd9;
    --soft: #e9efe6;
    --amber: #efb957;
    --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 1rem; line-height: 1.65; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .6; cursor: not-allowed; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; }
h1 { font-size: clamp(2.8rem, 5.1vw, 4.9rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.3vw, 3.2rem); font-weight: 500; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid #945c06; outline-offset: 5px; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: white; padding: 12px 20px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.access-bar { background: var(--ink); color: white; font-size: .78rem; }
.access-inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.access-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.access-actions button { border: 0; border-left: 1px solid #74938c; padding: 10px 12px; color: white; background: transparent; min-height: 42px; }
.small-a { font-size: .65rem; margin-left: 3px; }
.site-header { background: rgba(248,247,242,.97); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.nav-row { min-height: 98px; display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.12; }
.brand strong { display: block; font-weight: 400; font-size: .78rem; letter-spacing: .07em; margin-top: 4px; }
.brand-mark { width: 44px; height: 44px; background: var(--ink); color: white; display: grid; place-items: center; position: relative; border-radius: 50%; font-size: 2.1rem; font-weight: 600; padding-bottom: 5px; }
.brand-mark span { position: absolute; right: 6px; top: 9px; color: var(--amber); font-size: 1rem; }
#primary-nav, .nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links { margin: 0; padding: 0; list-style: none; gap: 24px; font-size: .86rem; }
.nav-links a { text-decoration: none; display: inline-block; padding: 12px 0; }
.nav-links a:hover, .nav-links [aria-current] { text-decoration: underline; }
.menu-toggle { display: none; }
.button { min-height: 48px; padding: 13px 22px; border: 1px solid transparent; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; text-decoration: none; font-weight: 600; font-size: .9rem; line-height: 1.4; transition: background .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.primary { background: var(--teal); color: white; }
.primary:hover { background: #103f38; }
.outline { border-color: var(--ink); background: transparent; }
.light { background: var(--amber); color: #173f3b; }
.text-link { display: inline-block; font-size: .9rem; font-weight: 600; text-decoration: none; padding-block: 12px; }
.text-link:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 76px 68px; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--teal); margin-bottom: 24px; }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--teal); margin-right: 7px; }
.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: #51785e; }
.lede { font-size: 1.08rem; max-width: 510px; line-height: 1.7; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.hero .button-row { margin-top: 30px; }
.hero-note { font-size: .78rem; margin-top: 24px; }
.hero-visual { margin: 0; position: relative; padding-bottom: 20px; }
.hero-visual img { width: 100%; height: 510px; object-fit: cover; border-radius: 150px 18px 18px 18px; }
.hero-visual figcaption { font-size: .66rem; color: var(--muted); margin-top: 12px; text-align: right; }
.photo-badge { display: flex; gap: 16px; align-items: center; position: absolute; bottom: 55px; left: -25px; background: white; box-shadow: 0 12px 40px #193b3520; border: 1px solid var(--line); padding: 20px 24px; border-radius: 12px; }
.photo-badge strong { font-size: .88rem; display: block; }
.photo-badge span:not(.sound-icon) { font-size: .72rem; color: var(--muted); }
.sound-icon { background: var(--soft); color: var(--teal); padding: 8px; border-radius: 50%; letter-spacing: 2px; }
.principle-strip { border-block: 1px solid var(--line); background: var(--soft); }
.principle-strip .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 27px; font-size: .85rem; }
.principle-strip span { color: var(--muted); }
.section { padding-block: 90px; }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading>p { max-width: 340px; font-size: .94rem; margin-bottom: 5px; }
.grid { display: grid; gap: 24px; }
.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card p, .card li { font-size: .94rem; }
.feature { display: flex; flex-direction: column; align-items: start; }
.feature .text-link { margin-top: auto; }
.icon-tile { display: grid; place-items: center; width: 52px; height: 52px; background: var(--soft); color: var(--teal); border-radius: 14px; margin-bottom: 28px; font-size: 1.4rem; }
.mission { background: #e9eee4; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.quote-card { border: 1px solid #c9d4c7; border-radius: var(--radius); padding: 36px 50px; background: #f6f7ef; }
.quote-mark { color: #678471; font-family: Georgia, serif; font-size: 5rem; height: 65px; display: block; line-height: 1; }
.quote-card h3 { font-size: 2.9rem; font-weight: 400; margin: 20px 0; }
.quote-card p { font-size: .86rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill-row span { border: 1px solid var(--line); border-radius: 30px; padding: 6px 12px; font-size: .73rem; }
.steps article { padding-right: 22px; }
.steps article>span { display: block; border-bottom: 1px solid var(--line); font-size: 1rem; padding-bottom: 20px; margin-bottom: 24px; color: var(--teal); }
.video-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.video-card video { border-radius: 12px; width: 100%; }
.small { font-size: .79rem; }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1rem; min-height: 30px; }
details p, details ul, details ol { margin-top: 15px; }
.final-cta { margin-bottom: 90px; padding: 48px 54px; background: var(--ink); color: white; display: flex; justify-content: space-between; align-items: center; gap: 35px; border-radius: var(--radius); }
.final-cta .eyebrow { color: #d1decf; }
.final-cta h2 { margin-bottom: 0; }
.site-footer { padding-top: 65px; background: #edf0e8; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; padding-bottom: 55px; }
.footer-grid p { font-size: .9rem; max-width: 340px; margin-top: 22px; }
.footer-grid h2 { font-size: .92rem; letter-spacing: 0; margin-bottom: 18px; }
.footer-grid>div:not(:first-child)>a { display: block; font-size: .85rem; padding: 8px 0; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-note { font-size: .75rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 24px; font-size: .76rem; }
.footer-bottom>div { display: flex; gap: 25px; }
.page-main { padding-block: 45px 90px; min-height: 65vh; }
.page-main h1 { max-width: 900px; margin-bottom: 40px; }
.breadcrumb { display: flex; gap: 12px; font-size: .79rem; margin-bottom: 40px; flex-wrap: wrap; }
.page-content>p { max-width: 850px; }
.page-content>h2 { margin-top: 45px; }
.page-content .grid { margin-block: 30px; }
.page-content .symbol { color: var(--teal); display: block; margin-bottom: 25px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; margin-top: 45px; }
.contact-info { padding: 20px 0; }
.contact-info h4 { margin: 30px 0 5px; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
input:not([type=checkbox]), textarea, select { width: 100%; border: 1px solid #849b91; border-radius: 7px; background: var(--paper); color: var(--ink); min-height: 48px; padding: 12px; margin-bottom: 22px; }
textarea { resize: vertical; }
.consent { display: block; font-size: .78rem; font-weight: 400; margin: 10px 0 22px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--teal); vertical-align: middle; margin-right: 8px; }
.form-status { margin-top: 16px; font-size: .9rem; color: var(--ink); }
.form-status:empty { display: none; }
.honeypot { position: absolute; left: -10000px; }
.assistant-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 45px; }
.assistant-guide { padding-top: 15px; }
.assistant-guide h2 { font-size: 2.5rem; }
.assistant-guide h3 { margin-top: 32px; font-size: 1.1rem; }
.prompt-list { display: grid; gap: 10px; margin: 20px 0 30px; }
.prompt-list button { padding: 15px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.prompt-list button:hover { border-color: var(--teal); }
.chat-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.chat-top { background: var(--soft); padding: 20px 25px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.chat-top strong { font-size: .92rem; }
.chat-top p { font-size: .73rem; margin: 5px 0 0; }
.chat-top button, .message button { background: transparent; border: 1px solid var(--line); border-radius: 6px; min-height: 40px; font-size: .76rem; padding: 8px 12px; }
.online-dot { display: inline-block; width: 8px; height: 8px; background: var(--teal); border-radius: 50%; margin-right: 8px; }
#chat-log { min-height: 220px; max-height: 450px; overflow-y: auto; padding: 25px; }
.message { padding: 18px; border-radius: 12px; background: var(--cream); margin-bottom: 15px; }
.message strong { font-size: .72rem; }
.message p { font-size: .94rem; margin: 8px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user { background: var(--soft); margin-left: 25px; }
.chat-options { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 15px 25px; border-top: 1px solid var(--line); }
.chat-options label { margin: 0; font-size: .75rem; font-weight: 400; }
.chat-options select { width: auto; margin: 0; min-height: 40px; padding: 6px; font-size: .8rem; }
#chat-form { padding: 25px; border-top: 1px solid var(--line); }
#chat-form textarea { margin-bottom: 10px; }
.high-contrast { --ink: #ffffff; --teal: #ffffff; --cream: #000000; --paper: #000000; --muted: #ffffff; --line: #ffffff; --soft: #000000; }
.high-contrast .site-header, .high-contrast .site-footer, .high-contrast .mission, .high-contrast .quote-card { background: #000; }
.high-contrast .access-bar, .high-contrast .final-cta, .high-contrast .brand-mark { background: #000; border: 1px solid white; }
.high-contrast .primary { background: #fff; color: #000; }
.high-contrast .hero h1 em, .high-contrast .photo-badge span, .high-contrast .quote-mark { color: white; }
.high-contrast .photo-badge { background: #000; }
.high-contrast .final-cta .eyebrow { color: white; }
.high-contrast :focus-visible { outline-color: #ffd25f; }
@media (max-width: 1050px) {
    .nav-links { gap: 15px; }
    #primary-nav { gap: 20px; }
    .hero { gap: 30px; }
    .hero-visual img { height: 470px; }
    .split { gap: 50px; }
    .nav-cta { padding: 12px; }
}
@media (max-width: 850px) {
    .container { width: min(100% - 40px, 680px); }
    .access-inner { flex-direction: column; gap: 0; padding-top: 8px; }
    .access-actions { gap: 0; justify-content: center; }
    .access-actions button { padding-inline: 9px; }
    .nav-row { min-height: 80px; position: relative; }
    .menu-toggle { display: block; border: 1px solid var(--line); border-radius: 6px; background: transparent; min-height: 48px; padding: 10px 16px; }
    #primary-nav { display: none; position: absolute; top: 100%; left: -20px; right: -20px; padding: 24px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 20px 25px #193b3510; }
    #primary-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
    .nav-links { align-items: stretch; flex-direction: column; gap: 0; }
    .nav-links a { display: block; padding: 12px; }
    .hero { grid-template-columns: 1fr; padding-block: 45px; }
    .hero h1 { font-size: clamp(2.7rem, 9vw, 4.7rem); }
    .hero-visual { max-width: 600px; margin-top: 10px; }
    .hero-visual img { height: 410px; border-top-left-radius: 100px; }
    .photo-badge { left: 15px; }
    .principle-strip .container { justify-content: start; gap: 18px 25px; }
    .principle-strip .container>span { width: 100%; }
    .section { padding-block: 60px; }
    .section-heading { flex-direction: column; align-items: start; gap: 20px; }
    .three { grid-template-columns: 1fr; }
    .split, .faq, .video-section, .assistant-layout, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
    .quote-card { padding: 30px; }
    .final-cta { flex-direction: column; align-items: start; padding: 35px; margin-bottom: 60px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-grid>div:first-child { grid-column: 1 / -1; }
    .page-main { padding-top: 30px; }
    .video-section { padding: 25px; }
    .admin-bar .site-header { top: 46px; }
}
@media (max-width: 480px) {
    .container { width: calc(100% - 32px); }
    .hero-visual img { height: 330px; border-top-left-radius: 65px; }
    .photo-badge { left: 10px; padding: 15px; right: 10px; }
    .button-row { align-items: stretch; }
    .hero .button-row .button { width: 100%; }
    .chat-top { align-items: start; padding: 16px; }
    #chat-form, #chat-log, .chat-options { padding: 18px; }
    .chat-top strong { font-size: .8rem; }
    .card { padding: 24px; }
    .footer-bottom { flex-direction: column; }
    h1 { font-size: 2.6rem; }
    .access-actions button { font-size: .68rem; }
    .access-inner>span { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .access-bar, .site-footer, .button, .chat-options, #chat-form { display: none; } body { background: white; color: black; } .container { width: 100%; } }
