/* ============================================
   The Right Cause Foundation — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

/* --- CSS Variables --- */
:root {
    --ink: #0d1f2d;
    --teal: #145566;
    --teal-light: #1a7a8a;
    --amber: #c87a1a;
    --amber-light: #e8a84c;
    --amber-glow: #fbbf24;
    --cream: #faf6f0;
    --warm-white: #fefcf9;
    --sage: #a8c5bc;
    --muted: #6b7a8d;
    --border: #e2ddd5;
    --white: #ffffff;
    --coral: #e07a5f;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    --shadow-sm: 0 1px 3px rgba(13,31,45,0.06);
    --shadow-md: 0 4px 16px rgba(13,31,45,0.08);
    --shadow-lg: 0 12px 40px rgba(13,31,45,0.12);
    --shadow-xl: 0 20px 60px rgba(13,31,45,0.16);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--warm-white);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

::selection {
    background: var(--amber-light);
    color: var(--ink);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--ink);
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 640px;
    line-height: 1.8;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--amber-light));
    border-radius: 3px;
    margin: 1rem 0 1.5rem;
}

.section-divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 20px rgba(13,31,45,0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s;
}

.logo em {
    font-style: normal;
    color: var(--amber-glow);
}

.scrolled .logo { color: var(--ink); }
.scrolled .logo em { color: var(--amber); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    transition: color 0.3s;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-glow);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.scrolled .nav-links a { color: var(--ink); }
.scrolled .nav-links a:hover { color: var(--teal); }

.nav-cta {
    background: var(--amber) !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    transition: background 0.3s, transform 0.2s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--amber-light) !important;
    transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.scrolled .mobile-toggle span { background: var(--ink); }

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

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

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

@media (max-width: 768px) {
    .mobile-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.open { right: 0; }
    .nav-links a { color: var(--ink) !important; font-size: 1.1rem; }
    .nav-links a:hover { color: var(--teal) !important; }
}

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,31,45,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- Hero Sections --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,31,45,0.85) 0%, rgba(20,85,102,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251,191,36,0.15);
    border: 1px solid rgba(251,191,36,0.3);
    color: var(--amber-glow);
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--amber-glow);
    display: block;
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    font-weight: 300;
}

/* Page hero (shorter) */
.page-hero {
    min-height: 55vh;
    padding-top: 120px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--amber);
    color: #fff;
    box-shadow: 0 4px 16px rgba(200,122,26,0.3);
}

.btn-primary:hover {
    background: var(--amber-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,122,26,0.4);
}

.btn-outline {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--teal);
    border: 1.5px solid var(--teal);
}

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

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(200,122,26,0.1), rgba(232,168,76,0.15));
    color: var(--amber);
}

.card h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Accent top border cards */
.card-accent {
    border-top: 3px solid var(--amber);
}

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Section Backgrounds --- */
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-teal { background: var(--teal); color: #fff; }
.bg-dark { background: var(--ink); color: #fff; }

/* --- Image Containers --- */
.img-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-frame:hover img {
    transform: scale(1.05);
}

/* --- Two Column Layout --- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* --- Contact Form --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(20,85,102,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Icon Boxes (Who We Work With) --- */
.icon-box {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--cream);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.icon-box:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
    transform: translateY(-4px);
}

.icon-box i {
    font-size: 2.5rem;
    color: var(--amber);
    margin-bottom: 0.75rem;
    display: block;
}

.icon-box h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
}

/* --- Check List --- */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--ink);
}

.check-item i {
    color: #22c55e;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* --- Tags --- */
.tag {
    display: inline-block;
    background: var(--cream);
    color: var(--muted);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-amber {
    background: rgba(200,122,26,0.1);
    color: var(--amber);
}

.tag-teal {
    background: rgba(20,85,102,0.1);
    color: var(--teal);
}

/* --- Callout Box --- */
.callout {
    background: linear-gradient(135deg, rgba(200,122,26,0.08), rgba(232,168,76,0.05));
    border-left: 4px solid var(--amber);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--ink);
}

/* --- Dark Section Cards --- */
.dark-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s;
}

.dark-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* --- Footer --- */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.75);
    padding: 4rem 0 1.5rem;
}

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

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    padding: 0.3rem 0;
    font-size: 0.9rem;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
    color: var(--amber-glow);
    padding-left: 6px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .footer-contact p { justify-content: center; }
}

.footer-contact i {
    color: var(--amber-glow);
    margin-top: 0.25rem;
    width: 18px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .social-icons { justify-content: center; }
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* --- Scroll To Top --- */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--amber);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 50;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--amber-light);
    transform: translateY(-3px);
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.gap-3 { gap: 1.5rem; }
.max-w-narrow { max-width: 640px; }
.max-w-mid { max-width: 800px; }

/* --- Phase Badge --- */
.badge-phase {
    display: inline-block;
    background: rgba(20,85,102,0.1);
    color: var(--teal);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(20,85,102,0.2);
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* --- Dark section topic tags --- */
.topic-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: all 0.3s;
}

.topic-tag:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.topic-tag i {
    color: #67e8f9;
    font-size: 1rem;
}

/* --- Number Counter Style --- */
.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--amber);
}

/* --- USP / Edge list items --- */
.usp-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.usp-item:last-child { border-bottom: none; }

.usp-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.usp-item h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.usp-item p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* --- Audience grid cards for cyber/posh --- */
.audience-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border-top: 3px solid #67e8f9;
    transition: all 0.3s;
}

.audience-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.audience-card .emoji {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.audience-card h4 {
    font-family: var(--font-body);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.audience-card ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.audience-card li {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
