/* WeightScope - Main Stylesheet */
/* Educational Website - January 2026 */

:root {
    --teal-primary: #5DADE2;
    --teal-soft: #85C1E9;
    --teal-light: #D4E6F1;
    --teal-dark: #2E86AB;
    --text-dark: #2C3E50;
    --text-muted: #5D6D7E;
    --text-light: #7F8C8D;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-section: #FAFCFD;
    --border-light: #E8ECEF;
    --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding-top: 76px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--teal-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--teal-primary);
    text-decoration: none;
}

/* Header / Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-soft);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--teal-dark) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 36px;
    width: 36px;
    margin-right: 10px;
    border-radius: var(--radius-sm);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--teal-dark) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--teal-light) 100%);
    padding: 4rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--bg-section);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--teal-primary);
    border-radius: 2px;
}

.section-title p {
    margin-top: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Blocks */
.content-block {
    margin-bottom: 3rem;
}

.content-block h3 {
    margin-bottom: 1rem;
}

.content-block p {
    line-height: 1.7;
}

/* Two Column Layout */
.two-col-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.two-col-content .text-col {
    flex: 1;
    min-width: 280px;
}

.two-col-content .image-col {
    flex: 1;
    min-width: 280px;
}

.two-col-content .image-col img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.two-col-content.reverse {
    flex-direction: row-reverse;
}

/* Cards */
.info-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    height: 100%;
    border: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-card);
}

.info-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Images in cards */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

/* Buttons / CTAs */
.btn-primary-soft {
    background-color: var(--teal-primary);
    color: var(--bg-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-primary-soft:hover {
    background-color: var(--teal-dark);
    color: var(--bg-white);
}

.btn-outline-soft {
    background-color: transparent;
    color: var(--teal-dark);
    border: 2px solid var(--teal-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-soft:hover {
    background-color: var(--teal-primary);
    color: var(--bg-white);
}

/* Limitations Block */
.limitations-block {
    background-color: var(--teal-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    border-left: 4px solid var(--teal-primary);
}

.limitations-block h3 {
    color: var(--teal-dark);
    margin-bottom: 1rem;
}

.limitations-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.limitations-block ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.limitations-block ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--teal-dark);
    font-weight: bold;
}

/* FAQ Section */
.faq-item {
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-dark);
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--bg-section);
}

.faq-question .icon {
    font-size: 1.25rem;
    color: var(--teal-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.15);
}

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

/* Contact Info */
.contact-info {
    padding: 1.5rem 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.contact-info-item .icon {
    width: 40px;
    height: 40px;
    background-color: var(--teal-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--teal-dark);
    flex-shrink: 0;
}

.contact-info-item .details h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text-light);
    font-weight: 500;
}

.contact-info-item .details p {
    margin-bottom: 0;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--teal-soft);
}

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

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.footer-disclaimer {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
}

.footer-disclaimer p {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--bg-light);
}

.cookie-banner .btn {
    padding: 0.5rem 1.25rem;
}

/* Policy Pages */
.policy-page {
    padding: 3rem 0;
}

.policy-page h1 {
    margin-bottom: 2rem;
}

.policy-page h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-page p, .policy-page li {
    color: var(--text-muted);
    line-height: 1.7;
}

.policy-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-page ul li {
    margin-bottom: 0.5rem;
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--teal-light) 100%);
    padding: 3rem 0;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

/* Utility Classes */
.mb-0 {
    margin-bottom: 0 !important;
}

.mt-2 {
    margin-top: 1rem !important;
}

.mt-3 {
    margin-top: 1.5rem !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Responsive Styles */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
    
    h1 {
        font-size: 1.85rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .two-col-content {
        flex-direction: column;
    }
    
    .two-col-content.reverse {
        flex-direction: column;
    }
    
    .two-col-content .image-col {
        order: -1;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.65rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 30px;
        width: 30px;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575px) {
    .hero-content {
        text-align: center;
    }
    
    .btn-primary-soft, .btn-outline-soft {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .limitations-block {
        padding: 1.5rem;
    }
}
