/* ============================================================
   Corporate Citizenship — Complete Stylesheet
   Mobile-first responsive design
   ============================================================ */

/* --- Font Faces (self-hosted, OFL licensed) --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-v18-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-v18-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-v18-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/source-sans-3-v15-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/source-sans-3-v15-latin-600.woff2') format('woff2');
}

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #1B4332;
    --color-primary-light: #2D6A4F;
    --color-secondary: #1B4965;
    --color-secondary-light: #2C6E8A;
    --color-accent: #C9A227;
    --color-accent-light: #D4B44A;
    --color-bg: #FAFAFA;
    --color-bg-alt: #F0F4F0;
    --color-bg-dark: #1B4332;
    --color-text: #2D2D2D;
    --color-text-light: #5A5A5A;
    --color-text-inverse: #FAFAFA;
    --color-border: #E0E5E0;
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Source Sans 3', 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;
    --nav-height: 64px;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

/* --- Skip to Content (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand:hover {
    color: var(--color-primary);
}

.nav-brand svg {
    flex-shrink: 0;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    display: block;
}

.nav-links a:last-child {
    border-bottom: none;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: var(--color-text-inverse) !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    border-bottom: none !important;
    text-align: center;
    justify-content: center;
}

.nav-cta:hover {
    background: var(--color-primary-light);
    color: var(--color-text-inverse) !important;
}

/* Hamburger Menu */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    padding: 7rem 0 4rem;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-secondary) 100%);
    color: var(--color-text-inverse);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,162,39,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-inverse);
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-image {
    margin-top: 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 48px;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    color: var(--color-text);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-inverse);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-text-inverse);
    border-color: rgba(255,255,255,0.7);
}

/* --- Section Base --- */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.section-dark .section-header h2 {
    color: var(--color-text-inverse);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 640px;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: rgba(255,255,255,0.8);
}

/* --- Pillars Grid --- */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.pillar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--color-primary);
    transition: transform var(--transition), box-shadow var(--transition);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pillar-card:nth-child(2) {
    border-top-color: var(--color-secondary);
}

.pillar-card:nth-child(3) {
    border-top-color: var(--color-accent);
}

.pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--color-bg-alt);
}

.pillar-card:nth-child(1) .pillar-icon {
    background: rgba(27,67,50,0.1);
    color: var(--color-primary);
}

.pillar-card:nth-child(2) .pillar-icon {
    background: rgba(27,73,101,0.1);
    color: var(--color-secondary);
}

.pillar-card:nth-child(3) .pillar-icon {
    background: rgba(201,162,39,0.15);
    color: var(--color-accent);
}

.pillar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.pillar-card ul {
    list-style: none;
    padding: 0;
}

.pillar-card li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.pillar-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
}

/* --- About Section (What is CC?) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* --- Benefits Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}

.benefit-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(201,162,39,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item h3 {
    font-size: 1.05rem;
    color: var(--color-text-inverse);
    margin-bottom: 0.25rem;
}

.benefit-item p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* --- Framework Section (Steps) --- */
.steps {
    max-width: 720px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 48px;
    bottom: -4px;
    width: 2px;
    background: var(--color-border);
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.step-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-text-inverse);
    text-align: center;
}

.cta-section h2 {
    font-size: 1.75rem;
    color: var(--color-text-inverse);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 540px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* --- Image Section (full-width divider) --- */
.image-divider {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.image-divider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Footer --- */
.footer {
    background: #111;
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

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

.footer-brand {
    max-width: 300px;
}

.footer-brand .nav-brand {
    color: var(--color-text-inverse);
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-nav h4 {
    color: var(--color-text-inverse);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.4rem;
}

.footer-nav a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-trademark {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

/* --- Legal Pages --- */
.legal-page {
    padding: 6rem 0 4rem;
}

.legal-page .container {
    max-width: 760px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.legal-back:hover {
    color: var(--color-primary);
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-page h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-page p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.legal-page ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--color-text-light);
}

.legal-page li {
    margin-bottom: 0.35rem;
}

.legal-page strong {
    color: var(--color-text);
}

/* --- 404 Page --- */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.page-404 h1 {
    font-size: 5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.page-404 p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* ============================================================
   Responsive — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .hero {
        padding: 8rem 0 5rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .about-image img {
        height: 360px;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .image-divider {
        height: 320px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

/* ============================================================
   Responsive — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        border: none;
        padding: 0;
        gap: 0.25rem;
        box-shadow: none;
        align-items: center;
    }

    .nav-links a {
        padding: 0.5rem 0.85rem;
        border-bottom: none;
        border-radius: var(--radius);
    }

    .nav-links a:hover {
        background: var(--color-bg-alt);
    }

    .nav-cta {
        margin-top: 0;
        margin-left: 0.5rem;
    }

    .nav-cta:hover {
        background: var(--color-primary-light);
    }

    .nav-toggle {
        display: none;
    }

    .hero {
        padding: 10rem 0 6rem;
    }

    .hero h1 {
        font-size: 3.25rem;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    .hero-image {
        margin-top: 0;
    }

    .section {
        padding: 5rem 0;
    }

    .pillar-card {
        padding: 2.5rem 2rem;
    }

    .about-grid {
        gap: 4rem;
    }

    .about-image img {
        height: 420px;
    }

    .image-divider {
        height: 400px;
    }

    .cta-section {
        padding: 5rem 0;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .cta-section h2 {
        font-size: 2.25rem;
    }
}

/* ============================================================
   Print Stylesheet
   ============================================================ */
@media print {
    .navbar,
    .nav-toggle,
    .hero::before,
    .btn,
    .footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .hero {
        background: none !important;
        color: #000;
        padding: 1rem 0;
    }

    .hero h1 {
        color: #000;
        font-size: 24pt;
    }

    .section-dark {
        background: none !important;
        color: #000;
    }

    .section-dark h2,
    .section-dark h3 {
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }
}

/* ============================================================
   Accessibility — Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   Image Fallbacks — Graceful degradation when images missing
   ============================================================ */
.hero-image {
    background: linear-gradient(135deg, rgba(27,67,50,0.3), rgba(27,73,101,0.3));
    min-height: 200px;
}

.image-divider {
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-bg));
}

.about-image {
    background: var(--color-bg-alt);
    min-height: 200px;
}

/* ============================================================
   Selection Styling
   ============================================================ */
::selection {
    background: rgba(27,67,50,0.2);
    color: var(--color-text);
}

/* ============================================================
   Smooth underline links in body text
   ============================================================ */
.about-text a,
.legal-page a,
.benefit-item a {
    text-decoration: underline;
    text-decoration-color: rgba(27,73,101,0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.about-text a:hover,
.legal-page a:hover,
.benefit-item a:hover {
    text-decoration-color: var(--color-secondary);
}
