/*
Theme Name: Gravitational Health
Theme URI: https://github.com/oyolokorai/coyolmediagroup
Description: A clean, modern WordPress theme optimized for health and wellness content. Designed for the Gravitational Media portfolio properties with a focus on readability, accessibility, and mobile-first design. Perfect for Freedom Health Daily and other health-focused properties.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
Author: Coyol Media Group
Author URI: https://github.com/oyolokorai
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: gravitational-health
Tags: health, wellness, accessibility, responsive, clean, modern, readability
*/

/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */

:root {
    /* Typography */
    --base-font-size: 18px;
    --line-height: 1.7;
    
    /* Colors - easily customizable per property */
    --primary-color: #2c7a7b;
    --secondary-color: #1a5d5e;
    --text-color: #2c3e50;
    --text-light: #4a5568;
    --text-muted: #718096;
    --background: #ffffff;
    --background-light: #f7fafc;
    --border-color: #e2e8f0;
}

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

html {
    font-size: var(--base-font-size);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: var(--line-height);
    color: var(--text-color);
    background: var(--background);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ==========================================
   2. TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, serif;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #1a365d;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }

p { margin-bottom: 1.5rem; }

blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-color);
    background: var(--background-light);
    font-style: italic;
    color: #4a5568;
}

/* ==========================================
   3. LAYOUT
   ========================================== */

.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main { flex: 1 0 auto; }

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

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col { flex: 1; padding: 0 1rem; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 1rem; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 1rem; }

/* ==========================================
   4. HEADER & NAVIGATION
   ========================================== */

.site-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
    color: #2c7a7b;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

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

.main-navigation a {
    color: #2d3748;
    font-weight: 500;
    padding: 0.5rem 0;
}

.main-navigation a:hover {
    color: #2c7a7b;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================
   5. CONTENT
   ========================================== */

.site-main {
    padding: 3rem 0;
}

article {
    margin-bottom: 4rem;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin-bottom: 1rem;
}

.entry-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #718096;
}

.entry-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.post-categories,
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.post-categories a,
.post-tags a {
    background: #f7fafc;
    color: #2d3748;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.post-categories a:hover,
.post-tags a:hover {
    background: #2c7a7b;
    color: #fff;
    text-decoration: none;
}

/* Post Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.post-card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ==========================================
   6. SIDEBAR & WIDGETS
   ========================================== */

.sidebar {
    padding-left: 2rem;
}

.widget {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 0.75rem;
}

/* ==========================================
   7. FOOTER
   ========================================== */

.site-footer {
    background: #2d3748;
    color: #e2e8f0;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Footer Links Navigation */
.footer-links-wrapper {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #4a5568;
    border-bottom: 1px solid #4a5568;
}

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

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-menu a:hover,
.footer-menu a:focus {
    color: #fff;
    text-decoration: underline;
}

/* Footer Disclaimer */
.footer-disclaimer {
    background: #1a202c;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #cbd5e0;
    text-align: center;
}

.footer-disclaimer p {
    margin: 0;
}

/* Site Info & Copyright */
.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    font-size: 0.9rem;
    color: #a0aec0;
}

.site-info .sep {
    margin: 0 0.5rem;
}

.network-branding {
    color: #a0aec0;
    font-style: italic;
}

@media (max-width: 768px) {
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-disclaimer {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

/* ==========================================
   MINIMAL FOOTER STYLE
   ========================================== */

.footer-minimal {
    background: #1f2937;
    padding: 2rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-minimal .footer-links-wrapper {
    margin: 0;
    padding: 0;
    border: none;
}

.footer-minimal .footer-menu {
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-minimal .footer-menu a {
    font-size: 0.9rem;
    color: #d1d5db;
}

.footer-minimal .footer-menu a:hover,
.footer-minimal .footer-menu a:focus {
    color: #fff;
}

.footer-minimal .site-info {
    padding-top: 1rem;
    border-top: none;
    font-size: 0.85rem;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .footer-minimal {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-minimal .footer-menu {
        gap: 1.25rem;
    }
}

/* ==========================================
   8. FORMS & BUTTONS
   ========================================== */

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #2c7a7b;
    box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.1);
}

button,
.button,
input[type="submit"] {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #2c7a7b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    background: #1a5d5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 122, 123, 0.3);
}

/* ==========================================
   9. RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    html { font-size: 16px; }
    
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu-toggle { display: block; }
    
    .main-navigation {
        display: none;
        width: 100%;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .col,
    .col-4,
    .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .sidebar {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   10. ACCESSIBILITY
   ========================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2c7a7b;
    color: #fff;
    padding: 0.75rem 1.5rem;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

:focus-visible {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* ==========================================
   11. UTILITIES
   ========================================== */

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
