/* IRELUM - Institutional Knowledge Portal */
/* Design System & Global Styles */

:root {
    --primary-color: #3A4750;
    --accent-light: #D9D9D9;
    --accent-sage: #A9B782;
    --accent-blue: #C5D2D6;
    --text-primary: #3A4750;
    --text-secondary: #666;
    --bg-light: #F9F9F9;
    --border-color: #E0E0E0;
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather', serif;
    color: var(--text-primary);
    background-color: #fff;
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--primary-color);
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
}

h2 {
    font-size: 2rem;
    margin: 2rem 0 1.2rem 0;
}

h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem 0;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

a {
    color: var(--accent-sage);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin: 1.2rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

ul li, ol li {
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    width: 40px;
    height: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--primary-color);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color var(--transition-speed);
}

nav a:hover {
    color: var(--accent-sage);
}

nav a.active {
    color: var(--accent-sage);
    border-bottom: 2px solid var(--accent-sage);
    padding-bottom: 0.3rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===== MAIN CONTENT ===== */
main {
    margin-top: 80px;
    padding: 0;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, rgba(58, 71, 80, 0.8) 0%, rgba(58, 71, 80, 0.85) 100%),
                url('../images/home-hero.jpg') center/cover no-repeat;
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ===== SECTION SPACING & RHYTHM ===== */
section {
    padding: 4rem 0;
}

section.alternate {
    background: var(--bg-light);
}

section.accent-bg {
    background: linear-gradient(90deg, var(--accent-light) 0%, var(--accent-blue) 100%);
}

/* ===== CONTENT SECTIONS ===== */
.section-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.section-wrapper.two-col {
    grid-template-columns: 1fr 1fr;
}

.section-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.section-text h2 {
    margin-top: 0;
}

/* ===== CARDS & GRID ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: box-shadow var(--transition-speed), transform 0.3s ease;
    cursor: default;
}

.card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid var(--primary-color);
    transition: all var(--transition-speed);
    cursor: pointer;
    border-radius: 0;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 3rem 2rem;
    margin-top: 4rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

.footer-section a:hover {
    color: var(--accent-sage);
}

.footer-contact {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer {
    background: rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    border-left: 3px solid var(--accent-sage);
}

/* ===== BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow var(--transition-speed), transform 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--accent-sage);
    margin-bottom: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.blog-card .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.8rem;
}

/* ===== DISCLAIMER SECTION ===== */
.disclaimer-section {
    background: linear-gradient(90deg, var(--accent-blue) 0%, rgba(197, 210, 214, 0.5) 100%);
    border-left: 4px solid var(--accent-sage);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0;
}

.disclaimer-section h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.disclaimer-section p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.medical-notice {
    background: rgba(58, 71, 80, 0.05);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== FORM STYLES ===== */
form {
    max-width: 600px;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--primary-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    transition: border-color var(--transition-speed);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-sage);
    box-shadow: 0 0 0 3px rgba(169, 183, 130, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .section-wrapper.two-col {
        grid-template-columns: 1fr;
    }

    nav ul {
        gap: 1.5rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        border-bottom: 1px solid var(--border-color);
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        margin: 0;
    }

    nav a {
        padding: 0.8rem 0;
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    main {
        margin-top: 70px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .container-narrow {
        padding: 0 1.5rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.6rem;
        margin: 1.2rem 0 0.8rem 0;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .container,
    .container-narrow {
        padding: 0 1rem;
    }

    nav ul {
        padding: 0.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section-image {
        height: 250px;
    }
}
