/* ============================================
   myKokoro Human & Animal Care Wing — CSS
   health.css
   ============================================ */

:root {
    --bg-primary: #0d1b2a;
    --bg-secondary: #111827;
    --bg-indigo: #1a1a3e;
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #2a3550;

    /* Health wing accents */
    --health-green: #6b8c3a;
    --health-green-light: #8ab54a;
    --health-teal: #00c9b1;
    --health-mauve: #9e5a7a;
    --health-mauve-light: #c47a9e;
    --health-brown: #8b6340;
    --health-blue: #7a9ab0;
    --health-cream: #e8dfc0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-indigo) 60%, #0f1a30 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Subtle cosmic depth overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(0, 201, 177, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 80%, rgba(158, 90, 122, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(26, 26, 62, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body > * { position: relative; z-index: 1; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.nav-logo .logo-img {
    height: 35px;
    width: auto;
    margin-bottom: 2px;
}

.division-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    margin-left: 2px;
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--health-mauve-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--health-mauve-light);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--health-mauve-light);
}

/* Cross-wing link */
.wing-link {
    color: #4fd1c7 !important;
    font-weight: 500;
    border: 1px solid rgba(79, 209, 199, 0.35);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    transition: background 0.3s ease, color 0.3s ease !important;
}

.wing-link:hover {
    background: rgba(79, 209, 199, 0.1);
    color: #7de8e0 !important;
}

.wing-link::after {
    display: none !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* ---- Page Hero (Our Apps page) ---- */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.page-hero-logo {
    height: 270px;
    width: auto;
    margin-bottom: 1.5rem;
}

.page-hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--health-mauve-light), var(--health-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Apps Grid (Our Apps page) ---- */
.apps-grid-section {
    padding: 3rem 0 6rem;
}

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

/* ---- App Card (Our Apps page) ---- */
.app-card {
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.app-card:hover {
    transform: translateY(-8px);
}

.app-card.animal-hub-card:hover {
    border-color: var(--health-green);
    background: rgba(107, 140, 58, 0.06);
}

.app-card.nexus-card:hover {
    border-color: var(--health-teal);
    background: rgba(0, 201, 177, 0.06);
}

.app-card.shelter-card:hover {
    border-color: var(--health-mauve);
    background: rgba(158, 90, 122, 0.06);
}

.app-card-logo-wrap {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid var(--border-color);
}

.app-card-logo-wrap img {
    height: 160px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
}

.app-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.app-card-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.app-card-tagline {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1rem;
}

.animal-hub-card .app-card-tagline { color: var(--health-green-light); }
.nexus-card .app-card-tagline      { color: var(--health-teal); }
.shelter-card .app-card-tagline    { color: var(--health-mauve-light); }

.app-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex: 1;
}

.app-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.coming-soon-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.animal-hub-card .coming-soon-badge {
    background: rgba(107,140,58,0.2);
    color: var(--health-green-light);
    border: 1px solid rgba(107,140,58,0.4);
}

.nexus-card .coming-soon-badge {
    background: rgba(0,201,177,0.15);
    color: var(--health-teal);
    border: 1px solid rgba(0,201,177,0.35);
}

.shelter-card .coming-soon-badge {
    background: rgba(158,90,122,0.15);
    color: var(--health-mauve-light);
    border: 1px solid rgba(158,90,122,0.35);
}

.learn-more-btn {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid;
    white-space: nowrap;
}

.animal-hub-card .learn-more-btn {
    color: var(--health-green-light);
    border-color: var(--health-green-light);
}
.animal-hub-card .learn-more-btn:hover {
    background: var(--health-green-light);
    color: #0d1b2a;
}

.nexus-card .learn-more-btn {
    color: var(--health-teal);
    border-color: var(--health-teal);
}
.nexus-card .learn-more-btn:hover {
    background: var(--health-teal);
    color: #0d1b2a;
}

.shelter-card .learn-more-btn {
    color: var(--health-mauve-light);
    border-color: var(--health-mauve-light);
}
.shelter-card .learn-more-btn:hover {
    background: var(--health-mauve-light);
    color: #0d1b2a;
}

/* ---- Individual App Page Hero ---- */
.app-hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}

.app-hero-logo {
    height: 220px;
    width: auto;
    margin-bottom: 1.5rem;
}

.app-hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.app-hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

/* App Store placeholder buttons */
.store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: default;
    opacity: 0.6;
}

.store-btn .store-icon {
    font-size: 1.3rem;
}

.store-btn .store-label {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.store-btn .store-label span:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-btn .store-label span:last-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ---- Features Section ---- */
.features-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

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

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ---- Pricing Section ---- */
.pricing-section {
    padding: 5rem 0;
    background: rgba(0,0,0,0.15);
}

.pricing-placeholder {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.pricing-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.pricing-placeholder p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ---- Notify CTA Section ---- */
.notify-section {
    padding: 5rem 0;
    text-align: center;
}

.notify-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.notify-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.notify-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 480px;
    margin: 0 auto;
}

.notify-form input {
    flex: 1;
    min-width: 220px;
    padding: 0.85rem 1.25rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.notify-form input:focus {
    border-color: var(--health-mauve-light);
}

.notify-form button {
    padding: 0.85rem 1.75rem;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

/* ---- Accent color helpers ---- */
.accent-green  { color: var(--health-green-light); }
.accent-teal   { color: var(--health-teal); }
.accent-mauve  { color: var(--health-mauve-light); }

.border-top-green  { border-top: 3px solid var(--health-green); }
.border-top-teal   { border-top: 3px solid var(--health-teal); }
.border-top-mauve  { border-top: 3px solid var(--health-mauve); }

.feature-item.green:hover  { border-color: var(--health-green); }
.feature-item.teal:hover   { border-color: var(--health-teal); }
.feature-item.mauve:hover  { border-color: var(--health-mauve); }

/* ---- Footer ---- */
.footer {
    background: rgba(13,27,42,0.98);
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content-compact {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 0 0.5rem;
}

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

.footer-brand-compact .footer-logo-small {
    height: 60px;
    width: auto;
    margin-bottom: 0.5rem;
}

.footer-brand-compact p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
    margin: 0;
}

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

.footer-column h4 {
    color: var(--health-mauve-light);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover { color: var(--health-mauve-light); }

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

.footer-2col div {
    display: flex;
    flex-direction: column;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .apps-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(13,27,42,0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .page-hero-title  { font-size: 2.2rem; }
    .app-hero-title   { font-size: 2rem; }
    .section-title    { font-size: 1.7rem; }

    .footer-content-compact { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0 1rem; }
    .footer-links-compact   { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-brand-compact   { max-width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .page-hero-title { font-size: 1.8rem; }
    .app-hero-title  { font-size: 1.7rem; }
    .app-hero-logo   { height: 160px; }
    .page-hero-logo  { height: 195px; }
}
