/* ===================================
   ABC Circle — Compassion SIP Page
   Unified Ivory/Teal Institutional Theme
   =================================== */

:root {
    --ivory: #FAFAF7;
    --surface: #FFFFFF;
    --teal-dark: #1A3A3A;
    --teal-mid: #2A5555;
    --teal-accent: #3D7A7A;
    --teal-light: #E8F0EF;
    --teal-subtle: #F2F7F6;
    --border: #E2E0DB;
    --border-dark: #C8C4BD;
    --text: #1C1C1C;
    --text-mid: #3A3A3A;
    --muted: #6B6B6B;
    --error: #C0392B;
    --success: #27AE60;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 4px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    background: var(--ivory);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--teal-light); color: var(--teal-dark); }

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9000;
    padding: 1.25rem 0;
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s var(--ease);
}
.nav.scrolled { padding: 0.875rem 0; box-shadow: 0 1px 12px rgba(0,0,0,0.04); }
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-mark {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--teal-dark);
    background: var(--teal-light);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius);
}
.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}
.nav-menu { display: flex; align-items: center; gap: 2.25rem; }
.nav-menu a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.2s;
}
.nav-menu a:hover { color: var(--teal-dark); }
.nav-cta {
    background: var(--teal-dark);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
}
.nav-cta:hover { background: var(--teal-mid); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    transition: all 0.3s;
}
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s var(--ease);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}
.dropdown-menu a:hover { background: var(--teal-subtle); }

/* ===== COMPASSION SIP NAV HIGHLIGHT ===== */
.nav-sip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--teal-dark);
    color: #fff !important;
    padding: 0.4rem 0.875rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.25s ease;
}
.nav-sip-link:hover {
    background: var(--teal-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 58, 58, 0.25);
}
.nav-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.125rem 0.4rem;
    border-radius: 8px;
    line-height: 1.4;
}

/* ===== PAGE HERO ===== */
.page-hero {
    position: relative;
    padding: clamp(8rem, 15vw, 12rem) 0 clamp(4rem, 8vw, 6rem);
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--teal-subtle) 0%, var(--ivory) 50%, var(--surface) 100%);
}
.hero-content { position: relative; max-width: 640px; }
.badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal-accent);
    background: var(--teal-light);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}
.page-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--teal-dark);
    margin-bottom: 1.25rem;
}
.text-accent { color: var(--teal-accent); }
.page-subtitle {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    color: var(--muted);
    line-height: 1.8;
    max-width: 520px;
}

/* ===== EMOTIONAL PITCH ===== */
.sip-pitch {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.pitch-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.hero-intro {
    margin-top: 0.75rem;
    font-weight: 500;
    color: var(--text-mid);
}
.pitch-body {
    margin-top: 2rem;
    text-align: left;
}
.pitch-body p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.pitch-quote {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--teal-subtle);
    border-left: 3px solid var(--teal-accent);
    border-radius: 0 8px 8px 0;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--teal-dark);
    line-height: 1.7;
    text-align: left;
}

/* ===== HOW SIP WORKS STRIP ===== */
.sip-how {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.strip-item { text-align: center; }
.strip-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}
.strip-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.strip-item p {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== SIP TIERS ===== */
.sip-tiers {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}
.section-label {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--teal-dark);
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
.section-desc {
    font-size: 0.9375rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: stretch;
}
.tier-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tier-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.tier-featured {
    border-color: var(--teal-accent);
    border-width: 2px;
    background: var(--teal-subtle);
}
.tier-custom {
    border-style: dashed;
}
.tier-badge {
    position: absolute;
    top: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal-dark);
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.625rem;
    border-radius: 8px;
    white-space: nowrap;
}
.tier-header {
    margin-bottom: 0.625rem;
}
.tier-header h3 {
    font-family: var(--font-mono);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 0;
}
.tier-period {
    font-size: 0.75rem;
    color: var(--muted);
}
.tier-impact {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--teal-accent);
    margin-bottom: 1rem;
}
.tier-btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

/* ===== SIP UNIT NOTE ===== */
.sip-unit-note {
    margin-top: 1.5rem;
    text-align: center;
}
.sip-unit-note p {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}
.sip-unit-note a {
    color: var(--teal-accent);
    font-weight: 600;
}
.sip-unit-note a:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}

/* ===== WHY SIP ===== */
.sip-why {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.why-card {
    padding: 1.75rem 1.5rem;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.why-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 0.625rem;
}
.why-card p {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== FORM SECTION ===== */
.sip-form-section {
    padding: clamp(2rem, 4vw, 3rem) 0;
}
.form-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: clamp(2rem, 4vw, 3rem);
}
.form-header {
    margin-bottom: 2rem;
}
.form-header h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 0.5rem;
}
.form-header p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
}
.required-mark { color: var(--error); }
.form-row { margin-bottom: 1.25rem; }
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--ivory);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-accent);
    box-shadow: 0 0 0 3px rgba(61, 122, 122, 0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit { margin-top: 1.5rem; text-align: center; }
.submit-note {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.75rem;
}

/* ===== TRANSPORT NOTE ===== */
.sip-transport {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}
.transport-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #EBF5F0 0%, #F2F7F6 100%);
    border: 1px solid var(--teal-accent);
    border-radius: 8px;
    text-align: center;
}
.transport-inner p {
    font-size: 0.8125rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    text-decoration: none;
}
.btn-primary {
    background: var(--teal-dark);
    color: #fff;
    border: 1.5px solid var(--teal-dark);
}
.btn-primary:hover {
    background: var(--teal-mid);
    border-color: var(--teal-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 58, 58, 0.2);
}
.btn-outline {
    background: transparent;
    color: var(--teal-dark);
    border: 1.5px solid var(--border-dark);
}
.btn-outline:hover {
    border-color: var(--teal-dark);
    background: var(--teal-subtle);
}
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.8125rem; border-radius: 6px; }
.btn-lg { padding: 1rem 2rem; font-size: 0.9375rem; border-radius: 8px; }

/* ===== FORM SUCCESS ===== */
.form-success {
    text-align: center;
    padding: 2rem 0;
}
.form-success .success-icon {
    color: var(--success);
    margin-bottom: 1.25rem;
}
.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 0.75rem;
}
.form-success p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--teal-dark);
    color: rgba(255,255,255,0.7);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-logo .logo-mark { background: rgba(255,255,255,0.1); color: #fff; }
.footer-logo .logo-text { color: #fff; }
.footer-brand p { font-size: 0.8125rem; line-height: 1.7; opacity: 0.7; }
.footer-nav-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}
.footer-col a {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    padding: 0.25rem 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* ===== ANIMATIONS ===== */
[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .strip-grid, .why-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .tiers-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row-2 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-nav-group { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0; right: 0;
        width: 280px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.35s var(--ease);
        box-shadow: -4px 0 24px rgba(0,0,0,0.1);
        z-index: 9999;
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu li { width: 100%; }
    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        font-size: 0.9375rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-toggle { display: block; z-index: 10000; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
    }
    .nav-sip-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.5rem 0;
    }
}

/* ===== ACCESSIBILITY ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--teal-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    [data-animate] { opacity: 1; transform: none; }
}
