/* ===================================================
   Nu-Activ — Main Stylesheet
   =================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary:       #1d2c1a;
    --color-primary-light: #2e4828;
    --color-accent:        #c8a44a;
    --color-accent-hover:  #b8942a;
    --color-green:         #3d7a5c;
    --color-bg:            #ffffff;
    --color-bg-light:      #f8f6ee;
    --color-bg-dark:       #111a0e;
    --color-text:          #111111;
    --color-text-med:      #383838;
    --color-text-light:    #6e6e6e;
    --font-head:           'Montserrat', sans-serif;
    --font-body:           'Open Sans', sans-serif;
    --max-w:               1200px;
    --radius:              8px;
    --shadow-sm:           0 2px 10px rgba(0,0,0,0.07);
    --shadow-md:           0 6px 24px rgba(0,0,0,0.11);
    --shadow-lg:           0 12px 48px rgba(0,0,0,0.16);
    --transition:          all 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 17px; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    line-height: 1.25;
    font-weight: 600;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.1rem,  5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem,  3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem,  2vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-med);
}

.label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.65rem;
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

section { padding: 5rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header p {
    max-width: 600px;
    margin: 0.75rem auto 0;
    font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,164,74,0.38);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-outline-white:hover {
    background: #fff;
    color: var(--color-primary);
}

/* ===== NAVIGATION ===== */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #F8F3D4;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    gap: 0.25rem;
}

.nav-tagline {
    display: block;
    font-family: var(--font-head);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(49,49,49,0.75);
    white-space: nowrap;
    line-height: 1;
    margin-left: 40px;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.nav-links a {
    color: rgba(49,49,49,0.78);
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 0;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: #111111; }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links .btn { padding: 0.5rem 1.2rem; font-size: 0.8rem; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: #313131;
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(18,26,15,0.82) 0%,
        rgba(18,26,15,0.55) 55%,
        rgba(18,26,15,0.25) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 680px;
}
.hero-content h1 {
    color: #fff;
    margin-bottom: 1.15rem;
    font-weight: 700;
}
.hero-content > p {
    color: rgba(255,255,255,0.88);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Page-level hero (inner pages) */
.page-hero {
    position: relative;
    padding: 7rem 0 4rem;
    overflow: hidden;
    margin-top: 72px;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18,26,15,0.72);
}
.page-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}
.page-hero-content h1 { color: #fff; margin-bottom: 0.6rem; }
.page-hero-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== SERVICES ===== */
.services { background: var(--color-bg-light); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 58px; height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    font-size: 1.5rem;
}

.service-card h3 { margin-bottom: 0.75rem; }
.service-card p  { font-size: 0.94rem; line-height: 1.75; margin: 0; }

/* ===== VISION ===== */
.vision { background: #fff; }

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.value-list {
    list-style: none;
    margin: 1.25rem 0 1.75rem;
}
.value-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
    color: var(--color-text-med);
    font-size: 0.94rem;
}
.value-list li::before {
    content: '✦';
    color: var(--color-accent);
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-top: 0.28rem;
}

.vision-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}
.vision-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.vision-image:hover img { transform: scale(1.04); }

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15,22,13,0.96) 0%,
        rgba(24,38,20,0.92) 100%
    );
}
.cta-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.cta-content h2 {
    color: #fff;
    margin-bottom: 1rem;
}
.cta-content > p {
    color: rgba(255,255,255,0.84);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 2rem;
}
.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #F8F3D4;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(49,49,49,0.6);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 0.75rem;
}

.footer-heading {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a {
    color: rgba(49,49,49,0.6);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: #111111; }

.footer-contact { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-contact a {
    color: rgba(49,49,49,0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}
.footer-contact a:hover { color: #111111; }

.footer-bottom {
    border-top: 1px solid rgba(49,49,49,0.12);
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p {
    color: rgba(49,49,49,0.4);
    font-size: 0.83rem;
    margin: 0;
}

/* ===== ABOUT PAGE ===== */
.about-intro { background: #fff; }
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image img {
    width: 100%; height: 460px;
    object-fit: cover;
}

.mission-vision { background: var(--color-bg-light); }
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.mv-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-accent);
}
.mv-card h3 {
    color: var(--color-accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}
.mv-card h4 {
    color: var(--color-primary);
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
}

.capabilities { background: #fff; }
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.cap-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--color-bg-light);
    transition: var(--transition);
}
.cap-item:hover { box-shadow: var(--shadow-md); background: #fff; }
.cap-icon {
    width: 46px; height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.cap-item h4 { margin-bottom: 0.3rem; font-size: 1rem; }
.cap-item p  { font-size: 0.88rem; margin: 0; }

/* ===== CONTACT PAGE ===== */
.contact-section { background: var(--color-bg-light); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 { margin-bottom: 0.75rem; }
.contact-info > p { font-size: 0.95rem; margin-bottom: 2rem; }

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-detail-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-detail h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 0.2rem;
}
.contact-detail p,
.contact-detail a { color: var(--color-text); font-size: 0.93rem; margin: 0; }
.contact-detail a:hover { color: var(--color-accent); }

/* Contact form */
.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}
.contact-form-wrapper > h3 { margin-bottom: 0.4rem; }
.contact-form-wrapper > p  { font-size: 0.9rem; margin-bottom: 1.75rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 0.38rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.72rem 1rem;
    border: 1.5px solid #dde3e0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.93rem;
    color: var(--color-text);
    background: var(--color-bg-light);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(46,72,40,0.12);
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-msg {
    padding: 0.875rem 1.25rem;
    border-radius: 4px;
    font-size: 0.88rem;
    margin-top: 1rem;
    display: none;
}
.form-msg.success {
    background: #edf7f0; color: #2a6b45;
    border: 1px solid #b4dfc6; display: block;
}
.form-msg.error {
    background: #fdf0f0; color: #a33030;
    border: 1px solid #f0bcbc; display: block;
}

/* ===== INSIGHTS LISTING ===== */
.insights-list { background: var(--color-bg-light); }
.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.insight-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.insight-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.insight-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.insight-card:hover .insight-card-img img { transform: scale(1.06); }

.insight-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.insight-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}
.insight-date {
    font-size: 0.78rem;
    color: var(--color-text-light);
    font-family: var(--font-head);
    margin-bottom: 0.6rem;
}
.insight-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}
.insight-card p {
    font-size: 0.91rem;
    flex: 1;
    margin-bottom: 1.25rem;
}
.insight-card .btn { align-self: flex-start; padding: 0.55rem 1.2rem; font-size: 0.8rem; }

/* New post prompt box */
.new-post-prompt {
    grid-column: 1 / -1;
    background: #fff;
    border: 2px dashed #c8d4cc;
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
}
.new-post-prompt h3 { color: var(--color-primary); margin-bottom: 0.5rem; font-size: 1.1rem; }
.new-post-prompt p  { font-size: 0.9rem; margin-bottom: 0; }
.new-post-prompt code {
    background: var(--color-bg-light);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    font-size: 0.9em;
    color: var(--color-primary);
}

/* ===== ARTICLE PAGE ===== */
.article-hero {
    margin-top: 72px;
    position: relative;
    height: 420px;
    overflow: hidden;
}
.article-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(18,26,15,0.88) 0%,
        rgba(18,26,15,0.35) 55%,
        transparent 100%
    );
}
.article-hero-text {
    position: absolute;
    bottom: 2.5rem;
    left: 0; right: 0;
}
.article-hero-text h1 {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    margin-bottom: 0.4rem;
}
.article-meta { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

.article-breadcrumb {
    background: var(--color-bg-light);
    border-bottom: 1px solid #e4ece8;
    padding: 0.85rem 0;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-primary-light);
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    transition: gap 0.2s ease, color 0.2s ease;
}
.back-link:hover { gap: 0.7rem; color: var(--color-primary); }

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}
.article-body h2 {
    font-size: 1.55rem;
    margin: 2.75rem 0 1rem;
    padding-top: 2.25rem;
    border-top: 1px solid #e8ede9;
}
.article-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 {
    font-size: 1.18rem;
    margin: 1.75rem 0 0.65rem;
    color: var(--color-primary-light);
}
.article-body p {
    font-size: 1.04rem;
    line-height: 1.85;
    color: #434343;
    margin-bottom: 1.15rem;
}
.article-body ul,
.article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li {
    margin-bottom: 0.5rem;
    color: #434343;
    font-size: 1.04rem;
    line-height: 1.75;
}
.article-body strong { color: var(--color-primary); font-weight: 600; }

.grade-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-size: 0.91rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.grade-table th {
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
.grade-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    color: #444;
}
.grade-table tr:nth-child(even) td { background: var(--color-bg-light); }

.disclaimer {
    margin-top: 2.5rem;
    padding: 1.15rem 1.4rem;
    background: var(--color-bg-light);
    border-radius: 4px;
    border-left: 3px solid var(--color-accent);
    font-size: 0.84rem;
    color: var(--color-text-light);
    font-style: italic;
    line-height: 1.65;
}

.article-cta {
    background: var(--color-primary);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0 4rem;
}
.article-cta h3 { color: #fff; margin-bottom: 0.65rem; }
.article-cta p  { color: rgba(255,255,255,0.78); margin-bottom: 1.5rem; }

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--color-primary);
    padding: 2.25rem 0;
    border-bottom: 3px solid var(--color-accent);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}
.stat-item {
    padding: 0.5rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}
.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.68);
    font-family: var(--font-head);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ===== CATEGORIES ===== */
.categories { background: var(--color-bg-light); }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.cat-card {
    background: #fff;
    border: 1px solid #dde3dc;
    border-top: 3px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    transition: var(--transition);
}
.cat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--color-primary-light);
    border-top-color: var(--color-accent);
}
.cat-icon {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    display: block;
}
.cat-card h4 {
    font-size: 0.97rem;
    margin-bottom: 0.45rem;
    color: var(--color-primary);
}
.cat-card p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.65;
}

/* ===== RESPONSIVE ===== */

/* ── Tablet landscape (≤ 1024px) ── */
@media (max-width: 1024px) {
    .nav-inner   { height: 68px; }
    .nav-links   { gap: 1.4rem; }
    .nav-links a { font-size: 0.8rem; }
    .nav-links .btn { padding: 0.45rem 0.9rem; font-size: 0.78rem; }
    .services-grid       { grid-template-columns: 1fr; }
    .vision-grid         { grid-template-columns: 1fr; gap: 2.5rem; }
    .vision-image        { max-height: 380px; }
    .about-intro-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-image img     { height: 340px; }
    .mv-grid             { grid-template-columns: 1fr; }
    .capabilities-grid   { grid-template-columns: 1fr; }
    .contact-grid        { grid-template-columns: 1fr; gap: 2.5rem; }
    .insights-grid       { grid-template-columns: repeat(2, 1fr); }
    .categories-grid     { grid-template-columns: repeat(2, 1fr); }
    .stats-grid          { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .footer-grid         { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .article-body        { padding: 3rem 1.75rem 2rem; }
}

/* ── Tablet portrait & large phones (≤ 900px) ── */
@media (max-width: 900px) {
    html { font-size: 16px; }

    /* Nav — hamburger */
    .nav-inner   { height: 64px; }
    .nav-tagline { display: none; }
    .logo-img    { height: 32px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: #F8F3D4;
        flex-direction: column;
        padding: 1.25rem 1.5rem 1.75rem;
        gap: 0;
        border-top: 1px solid rgba(49,49,49,0.1);
        box-shadow: 0 6px 16px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .nav-links li { border-bottom: 1px solid rgba(49,49,49,0.07); }
    .nav-links li:last-child { border-bottom: none; margin-top: 0.75rem; }
    .nav-links a  { display: block; padding: 0.85rem 0; font-size: 0.95rem; }
    .nav-links .btn { width: 100%; text-align: center; padding: 0.75rem 1rem; font-size: 0.9rem; }
    .nav-links.open { display: flex; }
    .nav-toggle  { display: flex; }

    /* Hero */
    .hero            { min-height: 85vh; padding-top: 64px; }
    .hero-content    { max-width: 100%; }
    .hero-content > p { font-size: 1rem; max-width: 100%; }
    .hero-actions    { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .hero-actions .btn { width: 100%; text-align: center; max-width: 360px; }

    /* Page hero */
    .page-hero       { padding: 4.5rem 0 3rem; margin-top: 64px; }

    /* Article hero */
    .article-hero    { margin-top: 64px; height: 260px; }
    .article-hero-text { bottom: 1.5rem; }

    /* Sections */
    section          { padding: 3rem 0; }
    .section-header  { margin-bottom: 2.25rem; }

    /* Stats */
    .stats-grid      { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .stat-item       { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem; }
    .stat-item:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.1); }
    .stat-item:last-child { border-bottom: none; }
    .stat-number     { font-size: 1.6rem; }

    /* Categories */
    .categories-grid { grid-template-columns: 1fr; }

    /* Insights */
    .insights-grid   { grid-template-columns: 1fr; }

    /* Vision image ordering */
    .vision-image    { order: -1; }

    /* About */
    .about-image img { height: 280px; }

    /* Contact form */
    .form-row        { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 1.75rem 1.25rem; }

    /* Footer */
    .footer-grid     { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom   { flex-direction: column; text-align: center; gap: 0.5rem; }

    /* CTA */
    .cta-section     { padding: 4rem 0; }
    .cta-actions     { flex-direction: column; align-items: center; gap: 0.75rem; }
    .cta-actions .btn { width: 100%; max-width: 320px; text-align: center; }

    /* Article */
    .article-body    { padding: 2.5rem 1.25rem 1.5rem; }

    /* Table: allow horizontal scroll */
    .grade-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .grade-table     { min-width: 540px; }
}

/* ── Phones (≤ 479px) ── */
@media (max-width: 479px) {
    html { font-size: 15px; }

    .container       { padding: 0 1.1rem; }

    /* Hero */
    .hero            { min-height: 100svh; }
    .hero-actions .btn { font-size: 0.9rem; padding: 0.85rem 1.5rem; }

    /* Stats: 2 cols stays but tighter */
    .stats-bar       { padding: 1.25rem 0; }

    /* Service cards */
    .service-card    { padding: 1.6rem 1.25rem; }

    /* Section header */
    .section-header p { font-size: 0.95rem; }

    /* Contact details */
    .contact-detail  { gap: 0.75rem; }

    /* Article hero */
    .article-hero    { height: 220px; }

    /* Article body */
    .article-body    { padding: 2rem 1rem 1.25rem; }
    .article-body h2 { font-size: 1.3rem; padding-top: 1.75rem; margin-top: 2rem; }
    .article-cta     { padding: 1.75rem 1.25rem; }

    /* CTA */
    .cta-actions .btn { max-width: 100%; }

    /* Footer */
    .site-footer     { padding: 3rem 0 1.5rem; }
}
