/*
Theme Name: Word in Bite Size
Theme URI: https://wordinbite-size.org
Author: WaymakerAI
Author URI: https://wordinbite-size.org
Description: A WordPress theme for Word in Bite Size ministry, converted from static HTML. Features modern design with Font Awesome icons, responsive layout, and custom navigation.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wibs
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, ministry, church, religious, full-site-editing, block-patterns
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4

Word in Bite Size WordPress Theme, (C) 2024 Word in Bite Size
Word in Bite Size is distributed under the terms of the GNU GPL.

This theme is based on the original static HTML design for Word in Bite Size ministry.
*/

/* ==========================================================================
   CSS Variables & Theme Colors
   ========================================================================== */

:root {
    /* Colors - Based on your Nicepage palette */
    --color-primary: #478ac9;        /* Blue accent */
    --color-primary-dark: #2a6496;   /* Dark blue */
    --color-secondary: #f9e109;      /* Yellow accent */
    --color-accent: #d22215;         /* Red accent */
    --color-dark: #333333;           /* Dark text */
    --color-light: #ffffff;          /* Light text */
    --color-gray-10: #f5f5f5;        /* Light gray */
    --color-gray-30: #e0e0e0;        /* Medium gray */
    --color-gray-80: #555555;        /* Dark gray */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-border: #e0e0e0;
    
    /* Semantic colors */
    --color-heading: var(--color-dark);
    --color-link: var(--color-primary);
    --color-link-hover: var(--color-primary-dark);
    --color-button-bg: var(--color-primary);
    --color-button-text: var(--color-light);
    --color-button-hover-bg: var(--color-primary-dark);
    
    /* Typography */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-condensed: 'Roboto Condensed', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    /* Container */
    --container-width: 1200px;
    --container-padding: 1rem;
    
    /* Border radius */
    --border-radius-sm: 3px;
    --border-radius-md: 6px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Normalize & Reset
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

/* ==========================================================================
   WordPress Required Styles
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    text-align: center;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9em;
    font-style: italic;
    color: var(--color-text-light);
    padding: 0.5em 0;
    margin: 0;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5em 1.5em -0.5em;
}

.gallery-item {
    flex: 1 0 auto;
    margin: 0.5em;
}

.sticky {
    position: relative;
    display: block;
}

/* ==========================================================================
   Basic Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: var(--color-heading);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    h6 { font-size: 1rem; }
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Layout & Structure
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.site-main {
    min-height: 60vh;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-gray-10);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--color-primary-dark);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-light);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Clearings
   ========================================================================== */

.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
    content: "";
    display: table;
    table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
    clear: both;
}

/* ==========================================================================
   Basic Form Styles
   ========================================================================== */

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: none;
    border-radius: var(--border-radius-sm);
    background: var(--color-button-bg);
    color: var(--color-button-text);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background: var(--color-button-hover-bg);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.site-header.is-sticky {
    padding: var(--spacing-xs) 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .site-logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover img {
    transform: scale(1.05);
}

/* Navigation */
.site-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-light);
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-light);
    left: 0;
}

.menu-toggle-icon::before { top: -8px; }
.menu-toggle-icon::after { bottom: -8px; }

.primary-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
}

.primary-menu a {
    color: var(--color-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item a {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: var(--spacing-xl) 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

/* Social links */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    list-style: none;
    margin: var(--spacing-md) 0;
    padding: 0;
}

.social-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* Footer widgets */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.widget-title {
    color: var(--color-light);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.widget a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.widget a:hover {
    color: var(--color-primary);
}

/* Footer navigation */
.footer-navigation .footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-navigation .footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-navigation .footer-menu a:hover {
    color: var(--color-primary);
}

/* Copyright */
.footer-copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-md) 0;
    text-align: center;
    margin-top: var(--spacing-lg);
}

.footer-copyright p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-copyright a {
    color: var(--color-primary);
    text-decoration: none;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .primary-menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--color-dark);
        padding: var(--spacing-xl) var(--spacing-lg);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .primary-menu-container.is-active {
        right: 0;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .primary-menu a {
        display: block;
        padding: var(--spacing-sm);
    }
    
    /* Grid adjustments */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-navigation .footer-menu {
        justify-content: center;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}