/*!
Theme Name:   Nexacare (Givico Child)
Theme URI:    https://www.nexacarecentre.org/
Description:  Nexacare-branded child theme for Givico. Hard-codes the Nexacare colour palette, typography, and locked footer block. Built to be brand-stable: even if a user changes the WordPress Customizer, this child theme overrides drift.
Author:       Nexacare Centre for Digital Health and Community Wellbeing
Author URI:   https://www.nexacarecentre.org/
Template:     givico
Version:      1.0.0
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  nexacare
*/

/* ======================================================================
   NEXACARE BRAND TOKENS — LOCKED. DO NOT MODIFY WITHOUT BOARD APPROVAL.
   ====================================================================== */

:root {
    --nexa-navy: #0F2A4F;
    --nexa-teal: #0F7B6C;
    --nexa-orchid: #A93EF5;
    --nexa-magenta: #E91E63;
    --nexa-light-grey: #F4F1EC;
    --nexa-mid-grey: #888888;
    --nexa-near-black: #1A1A1A;
    --nexa-white: #FFFFFF;

    --nexa-font-body: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --nexa-font-heading: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body,
body p,
body li,
body a,
.elementor-widget-text-editor,
.elementor-widget-heading {
    font-family: var(--nexa-font-body) !important;
    color: var(--nexa-near-black);
    font-size: 16px;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
    font-family: var(--nexa-font-heading) !important;
    color: var(--nexa-navy);
    font-weight: 700;
    line-height: 1.2;
}

h1, .elementor-heading-title.elementor-size-xxl {
    font-size: 44px;
}

h2, .elementor-heading-title.elementor-size-xl {
    font-size: 28px;
    color: var(--nexa-teal);
}

h3, .elementor-heading-title.elementor-size-large {
    font-size: 20px;
    color: var(--nexa-navy);
    font-weight: 600;
}

@media (max-width: 768px) {
    h1, .elementor-heading-title.elementor-size-xxl {
        font-size: 32px;
    }
    h2, .elementor-heading-title.elementor-size-xl {
        font-size: 24px;
    }
}

/* ======================================================================
   LINKS AND BUTTONS
   ====================================================================== */

a, a:visited {
    color: var(--nexa-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--nexa-navy);
    text-decoration: underline;
}

.elementor-button,
.wp-block-button__link,
button,
input[type="submit"] {
    background-color: var(--nexa-navy) !important;
    color: var(--nexa-white) !important;
    border: 2px solid var(--nexa-navy) !important;
    border-radius: 4px !important;
    padding: 12px 28px !important;
    font-family: var(--nexa-font-heading) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.3px !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
}

.elementor-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--nexa-teal) !important;
    border-color: var(--nexa-teal) !important;
    color: var(--nexa-white) !important;
}

.elementor-button.elementor-button-secondary,
.elementor-button.elementor-size-md.elementor-button-secondary {
    background-color: transparent !important;
    color: var(--nexa-navy) !important;
    border-color: var(--nexa-navy) !important;
}

.elementor-button.elementor-button-secondary:hover {
    background-color: var(--nexa-navy) !important;
    color: var(--nexa-white) !important;
}

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

.site-header,
.givico-header,
header.site-header {
    background-color: var(--nexa-white);
    border-bottom: 1px solid var(--nexa-light-grey);
}

.main-navigation a,
.main-navigation li > a {
    color: var(--nexa-navy) !important;
    font-weight: 500 !important;
    font-family: var(--nexa-font-heading) !important;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--nexa-teal) !important;
}

/* ======================================================================
   NEXACARE WORDMARK STYLE
   ====================================================================== */

.nexa-wordmark {
    font-family: var(--nexa-font-heading);
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.nexa-wordmark .nexa-prefix { color: var(--nexa-navy); }
.nexa-wordmark .nexa-suffix { color: var(--nexa-teal); }
.nexa-wordmark .nexa-subtitle {
    display: block;
    font-size: 0.5em;
    font-weight: 600;
    color: var(--nexa-navy);
    letter-spacing: 1px;
    margin-top: 4px;
    text-transform: uppercase;
}
.nexa-wordmark .nexa-subtitle .nexa-suffix-magenta { color: var(--nexa-magenta); }

/* ======================================================================
   IDENTITY LINE
   ====================================================================== */

.nexa-identity-line {
    font-family: var(--nexa-font-heading);
    font-weight: 600;
    color: var(--nexa-teal);
    letter-spacing: 0.5px;
    font-size: 16px;
}

.nexa-identity-line.on-dark { color: var(--nexa-white); }

/* ======================================================================
   SECTIONS
   ====================================================================== */

.nexa-section-light { background-color: var(--nexa-white); padding: 80px 0; }
.nexa-section-tinted { background-color: var(--nexa-light-grey); padding: 80px 0; }
.nexa-section-navy {
    background-color: var(--nexa-navy);
    color: var(--nexa-white);
    padding: 80px 0;
}
.nexa-section-navy h1,
.nexa-section-navy h2,
.nexa-section-navy h3,
.nexa-section-navy h4,
.nexa-section-navy .elementor-heading-title { color: var(--nexa-white); }

@media (max-width: 768px) {
    .nexa-section-light, .nexa-section-tinted, .nexa-section-navy { padding: 48px 0; }
}

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

.nexa-pillar-card {
    background: var(--nexa-white);
    border: 1px solid var(--nexa-light-grey);
    border-radius: 8px;
    padding: 32px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.nexa-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 42, 79, 0.08);
    border-color: var(--nexa-teal);
}

.nexa-pillar-card .pillar-icon {
    width: 56px;
    height: 56px;
    background: var(--nexa-light-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexa-teal);
    font-size: 24px;
    margin-bottom: 20px;
}

.nexa-pillar-card h3 {
    color: var(--nexa-navy);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.nexa-pillar-card p {
    color: var(--nexa-near-black);
    font-size: 15px;
    margin-bottom: 16px;
}

.nexa-pillar-card a {
    color: var(--nexa-teal);
    font-weight: 600;
    font-size: 14px;
}

/* ======================================================================
   TRUST STRIP
   ====================================================================== */

.nexa-trust-strip {
    background: var(--nexa-light-grey);
    padding: 16px 24px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--nexa-navy);
    font-family: var(--nexa-font-heading);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ======================================================================
   DOCUMENT DOWNLOAD CARDS
   ====================================================================== */

.nexa-doc-card {
    background: var(--nexa-white);
    border: 1px solid var(--nexa-light-grey);
    border-left: 4px solid var(--nexa-teal);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nexa-doc-card h3 {
    color: var(--nexa-navy);
    margin: 0;
    font-size: 18px;
}

.nexa-doc-card p {
    color: var(--nexa-mid-grey);
    font-size: 14px;
    margin: 0;
}

.nexa-doc-card .nexa-doc-meta {
    color: var(--nexa-mid-grey);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

footer.site-footer,
.site-footer,
.givico-footer {
    background-color: var(--nexa-navy) !important;
    color: var(--nexa-white) !important;
}

footer.site-footer a,
.site-footer a {
    color: var(--nexa-white) !important;
    opacity: 0.85;
}

footer.site-footer a:hover,
.site-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

footer.site-footer h2,
footer.site-footer h3,
footer.site-footer h4,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
    color: var(--nexa-white) !important;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* Locked footer band */
.nexa-locked-footer-band {
    background: #0a1d39;
    color: rgba(255,255,255,0.85);
    padding: 16px 24px;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0.3px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.nexa-locked-footer-band strong {
    color: var(--nexa-white);
    font-weight: 600;
}

/* ======================================================================
   FORMS
   ====================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    border: 1px solid #d4d4d4 !important;
    border-radius: 4px !important;
    padding: 12px 14px !important;
    font-family: var(--nexa-font-body) !important;
    font-size: 15px !important;
    background: var(--nexa-white) !important;
    color: var(--nexa-near-black) !important;
    transition: border-color 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--nexa-teal) !important;
    outline: none !important;
}

label {
    color: var(--nexa-navy);
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

/* ======================================================================
   TABLES
   ====================================================================== */

table { border-collapse: collapse; width: 100%; margin-bottom: 24px; }

table th {
    background: var(--nexa-navy);
    color: var(--nexa-white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--nexa-light-grey);
    font-size: 15px;
}

table tr:nth-child(even) td { background: var(--nexa-light-grey); }

/* ======================================================================
   BLOCKQUOTES
   ====================================================================== */

blockquote {
    border-left: 4px solid var(--nexa-teal);
    background: var(--nexa-light-grey);
    padding: 24px 32px;
    margin: 32px 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--nexa-navy);
    font-style: italic;
}

/* ======================================================================
   ACCESSIBILITY
   ====================================================================== */

a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--nexa-orchid);
    outline-offset: 2px;
}

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* ======================================================================
   PRINT
   ====================================================================== */

@media print {
    .site-header, .site-footer, .nexa-locked-footer-band { display: none; }
    body { color: #000 !important; background: #fff !important; }
}
