/* ============================================
   Nutrition Wisdom Hub - Shared Stylesheet
   ============================================ */

:root {
    --primary: #00B4D8;
    --primary-light: #67E8F9;
    --bg-dark: #0B1120;
    --bg-card: #172235;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Decorative Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* Buttons */
.btn-emerald {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #000;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(185, 171, 16, 0.3);
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(150, 125, 25, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-ghost:hover {
    background: rgba(16, 185, 129, 0.1);
}

/* Outline white button (used in hero) */
.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Cards */
.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: 0.3s;
}

.service-card:hover .icon {
    background: var(--primary);
    color: #000;
}

/* Forms */
.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    border-radius: 4px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    transform: scale(0.9);
    transition: 0.3s;
    position: relative;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-q {
    cursor: pointer;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.faq-q:hover {
    color: var(--primary-light);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-a {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-item.active .faq-q i {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-q i {
    transition: transform 0.3s;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    transition: 0.4s ease;
    z-index: 1001;
}

.mobile-drawer.open {
    right: 0;
}

/* Page Hero (for sub-pages like about, service, etc.) */
.page-hero {
    position: relative;
    padding: 120px 24px 60px;
    overflow: hidden;
    background: linear-gradient(to bottom, #1f2937, #0f172a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 16px;
}

.page-hero p {
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
}

/* Legal / Content Page Wrapper */
.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px;
}

.legal-wrapper h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.legal-wrapper .lead {
    color: #94a3b8;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.legal-wrapper section {
    margin-bottom: 28px;
}

.legal-wrapper h2 {
    color: var(--primary-light);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.legal-wrapper p {
    color: #cbd5e1;
    line-height: 1.75;
    font-size: 0.98rem;
}

/* Animated blobs (Tailwind doesn't ship animate-blob-slow by default in the CDN config used) */
@keyframes blob-slow {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.97); }
}

.animate-blob-slow {
    animation: blob-slow 14s ease-in-out infinite;
}