/* ================================================================
   People Helping Cats — Design System
   Colors: Navy #1F2A44 | Coral #E26D5A | Teal #7DB9B2 | Cream #F7F3EE | Grey #6B7280
   Fonts: Poppins (headings) | Caveat (accent) | system-ui (body)
   ================================================================ */

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

:root {
    --navy:   #1F2A44;
    --coral:  #E26D5A;
    --teal:   #7DB9B2;
    --cream:  #F7F3EE;
    --grey:   #6B7280;
    --white:  #ffffff;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(31,42,68,.10);
    --max-w:  1100px;
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--cream);
    color: var(--navy);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a   { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

.accent {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.3em;
}

.highlight { color: var(--coral); }

/* ── Layout ───────────────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity .15s, transform .1s;
    text-decoration: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }

.btn-coral  { background: var(--coral);  color: var(--white); border-color: var(--coral); }
.btn-navy   { background: var(--navy);   color: var(--white); border-color: var(--navy); }
.btn-teal   { background: var(--teal);   color: var(--white); border-color: var(--teal); }
.btn-outline { background: transparent; color: var(--navy);  border-color: var(--navy); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
    background: var(--white);
    border-bottom: 1px solid rgba(31,42,68,.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.nav-logo img { height: 80px; width: auto; }

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

.nav-links a {
    color: var(--navy);
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
}
.nav-links a:hover { color: var(--coral); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--navy);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
    background: var(--white);
    padding: 80px 0 72px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.hero-tagline {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: var(--grey);
    margin-bottom: 16px;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 .highlight { color: var(--coral); }

.hero-sub {
    font-size: 1.05rem;
    color: var(--grey);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--cream);
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ── Features Bar ─────────────────────────────────────────────── */
.features-bar {
    background: var(--teal);
    padding: 48px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.feature-item { color: var(--white); }

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.feature-item h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: .875rem;
    opacity: .85;
    line-height: 1.5;
}

/* ── Pricing ──────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.pricing-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: border-color .2s, transform .2s;
    text-align: center;
}

.pricing-card:hover { border-color: var(--coral); transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--coral); }

.pricing-badge {
    display: inline-block;
    background: var(--coral);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
}

.pricing-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.pricing-price {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--coral);
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-price sup { font-size: 1.2rem; vertical-align: super; }
.pricing-price .period { font-size: .9rem; color: var(--grey); font-weight: 400; }
.pricing-desc { font-size: .875rem; color: var(--grey); margin: 12px 0 20px; line-height: 1.5; }

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-features li {
    font-size: .875rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--cream);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--teal);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── How It Works ─────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.step {
    text-align: center;
    padding: 32px 20px;
}

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--coral);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--grey); font-size: .9rem; line-height: 1.6; }

/* ── Nonprofit Banner ─────────────────────────────────────────── */
.nonprofit-banner {
    background: var(--navy);
    color: var(--white);
    padding: 56px 0;
    text-align: center;
}

.nonprofit-banner h2 { color: var(--white); margin-bottom: 16px; }
.nonprofit-banner p { color: rgba(255,255,255,.75); margin-bottom: 28px; font-size: 1.05rem; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    padding: 48px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: .875rem;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .875rem; text-decoration: none; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
}

.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }

/* ── Forms ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1cfc9;
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: inherit;
    background: var(--white);
    color: var(--navy);
    transition: border-color .15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral);
}

.form-hint { font-size: .8rem; color: var(--grey); margin-top: 4px; }

.msg { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; }
.msg-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.msg-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.msg-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
}

/* ── Portal / Admin shared ────────────────────────────────────── */
.page-header {
    background: var(--white);
    border-bottom: 1px solid rgba(31,42,68,.08);
    padding: 32px 0 24px;
    margin-bottom: 40px;
}

.page-header h1 { font-size: 1.6rem; }
.page-header p  { color: var(--grey); margin-top: 6px; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge-green  { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-grey   { background: #f3f4f6; color: #6b7280; }
.badge-teal   { background: #ccfbf1; color: #0f766e; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--cream); font-size: .9rem; }
th { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); }
tr:hover td { background: var(--cream); }

/* ── Utilities ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-grey   { color: var(--grey); }
.text-coral  { color: var(--coral); }
.text-teal   { color: var(--teal); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 16px 24px;
        border-bottom: 1px solid rgba(31,42,68,.08);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid  { grid-template-columns: 1fr; }
    .steps-grid    { grid-template-columns: 1fr; }
}
