/*
Theme Name: COG7 Replica Theme
Theme URI: https://cog7.org/
Author: Your Name
Author URI: https://your-website.com
Description: A WordPress theme replica of cog7.org, built for easy customization.
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: cog7-replica-theme
Tags: church, religious, responsive, modern, clean, replica
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Variables
# Normalize & Basics
# Typography
# Accessibility
# Alignments
# Clearings
# Forms
# Buttons
# Site Structure
  ## Container
# Header
  ## Site Branding (Logo, Title)
  ## Top Bar
  ## Main Header Area
  ## Main Navigation (Desktop)
  ## Mobile Header & Navigation
# Content
  ## Posts and Pages
  ## Comments
# Sidebar
# Footer
# Widgets
# Media Queries
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
    --color-primary: #2F2F2F;
    --color-secondary: #FF2F3C;
    --color-text: #00C1C2;
    --color-accent: #FFAF23;
    --color-white: #FFFFFF;
    --color-light-gray: #f8f9fa;
    --color-medium-gray: #e9ecef;
    --color-dark-gray: #343a40;
    --font-body: 'proxima-nova-condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Fallback if proxima-nova isn't loaded by Typekit */
    --font-heading: 'proxima-nova-condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Fallback */
    
    /* Default static fallbacks for header colors - these will be overridden by inline styles from customizer.php */
    --header-top-bar-bg-default: #272727;
    --header-top-bar-text-default: #ffffff;
    --header-main-bg-default: #2F2F2F;
    --header-main-text-default: #FFFFFF;
    --header-main-link-hover-default: #00C1C2;
}

/* Attempt to load Proxima Nova if available (from Adobe Fonts usually) - otherwise fallback to sans-serif */
/* Ensure uju5nlz.css is correctly enqueued or its contents integrated if Typekit is not used directly */
@import url("https://use.typekit.net/uju5nlz.css"); /* This was in the original site's HTML */

/*--------------------------------------------------------------
# Normalize & Basics
--------------------------------------------------------------*/
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark-gray);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

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

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

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: bold; /* Placeholder, adjust as per original site */
    color: var(--color-primary);
}

/*--------------------------------------------------------------
# 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;
}

/*--------------------------------------------------------------
# Site Structure
--------------------------------------------------------------*/
.container {
    width: 100%;
    max-width: 1140px; /* Adjust as per original site's container width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    /* Add any global header styles if needed */
}

/* ## Top Bar */
.top-bar {
    background-color: var(--header-top-bar-bg, var(--header-top-bar-bg-default)); /* Use customizer value or fallback */
    color: var(--header-top-bar-text, var(--header-top-bar-text-default));
    padding: 0.3em 0; /* Slightly reduced padding */
    font-size: 0.75rem; /* Further reduced font size for subtlety */
    line-height: 1.5;
}

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

.top-bar-left, .top-bar-center, .top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.top-bar ul li {
    margin-right: 10px; /* Adjusted margin */
}

.top-bar ul li:last-child {
    margin-right: 0;
}

.top-bar a {
    color: inherit; /* Inherit from .top-bar color which gets customizer value */
    text-decoration: none;
    transition: opacity 0.3s ease; /* Smooth transition for hover */
}

.top-bar a:hover {
    opacity: 0.7; /* Slightly transparent on hover */
    text-decoration: none;
}

.top-bar .contact-info span { /* Add styling for individual contact items if needed */
    margin-right: 15px;
}
.top-bar .contact-info span:last-child {
    margin-right: 0;
}

.top-bar .contact-info i, .top-bar .social-icons i, .top-bar .user-links i {
    margin-right: 4px; /* Slightly reduced margin */
    font-size: 1em; /* Make icons same size as text */
}

.top-bar .social-icons a {
    padding: 0 5px; /* Add some padding around icons for better click area */
}

/* ## Main Header Area */
.main-header-area {
    background-color: var(--header-main-bg, var(--header-main-bg-default));
    padding: 1em 0;
    /* Add sticky styles later if needed */
}

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

/* ### Site Branding (Logo, Title) */
.site-branding img {
    max-height: 55px; /* Adjusted from 60px to match original site more closely */
    width: auto;
    vertical-align: middle; /* Ensure proper alignment if text is next to it */
}

.site-branding a {
    color: var(--header-main-text, var(--header-main-text-default));
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* New group for desktop nav and contact button */
.main-header-desktop-elements {
    display: flex;
    align-items: center;
}

/* ### Main Navigation (Desktop) */
.main-navigation ul#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* Align items vertically */
}

.main-navigation ul#primary-menu > li {
    margin-left: 25px; /* Adjusted spacing */
}
.main-navigation ul#primary-menu > li:first-child {
    margin-left: 0;
}

.main-navigation ul#primary-menu > li > a {
    color: var(--header-main-text, var(--header-main-text-default));
    text-decoration: none;
    padding: 10px 5px; /* Adjusted padding */
    font-family: var(--font-heading); /* Ensures Proxima Nova Condensed is used */
    font-weight: 700; /* Increased boldness to match target site's main menu items */
    text-transform: uppercase;
    font-size: 0.85rem; /* Slightly adjusted font size */
    letter-spacing: 0.8px; /* Adjusted letter spacing */
    transition: color 0.3s ease;
}

.main-navigation ul#primary-menu > li > a:hover,
.main-navigation ul#primary-menu > li.current-menu-item > a,
.main-navigation ul#primary-menu > li.current-menu-ancestor > a {
    color: var(--header-main-link-hover, var(--header-main-link-hover-default));
}

/* Sub-menu styling (basic) - can be expanded later */
.main-navigation ul.sub-menu {
    display: none; /* Hide by default, show on hover/focus if dropdowns are implemented */
    position: absolute;
    background-color: var(--header-main-bg, var(--header-main-bg-default));
    padding: 10px 0;
    list-style: none;
    min-width: 200px;
    z-index: 1000;
    border-top: 2px solid var(--header-main-link-hover, var(--header-main-link-hover-default)); /* Accent line */
}

.main-navigation ul.sub-menu li {
    margin-left: 0;
}

.main-navigation ul.sub-menu li a {
    color: var(--header-main-text, var(--header-main-text-default));
    padding: 8px 15px;
    display: block;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.2px;
}

.main-navigation ul.sub-menu li a:hover {
    color: var(--header-main-link-hover, var(--header-main-link-hover-default));
    background-color: rgba(0,0,0,0.1); /* Slight bg change on hover */
}

/* ### Header Contact Button */
.header-contact-button .button {
    background-color: transparent; /* Transparent background */
    color: var(--header-main-text, var(--header-main-text-default)); /* Use main header text color, should be white */
    padding: 8px 18px; /* Adjusted padding to match target better */
    text-decoration: none;
    border: 2px solid var(--header-main-text, var(--header-main-text-default)); /* White border */
    border-radius: 5px; /* Rounded corners */
    font-family: var(--font-heading);
    font-weight: 700; /* Bolder to match target */
    font-size: 0.85rem; /* Adjusted size to match target */
    text-transform: uppercase;
    letter-spacing: 1px; /* Added letter spacing to match target */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    display: inline-block;
    margin-left: 20px;
}

.header-contact-button .button:hover {
    background-color: var(--color-text); /* Accent color (teal) on hover - as per original dropdown hover */
    color: var(--color-white);
    border-color: var(--color-text); /* Border to match background on hover */
    text-decoration: none;
}

/* ## Mobile Header & Navigation */
.mobile-header-area .container {
    /* This class is added for the mobile header structure in header.php */
    /* Ensure it is only active for mobile via .mobile-only parent or media query */
}

.menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: 1px solid var(--header-main-text, var(--header-main-text-default));
    color: var(--header-main-text, var(--header-main-text-default));
    padding: 0.5em;
    cursor: pointer;
}

.menu-toggle i {
    font-size: 1.5rem;
}

.main-navigation-mobile {
    display: none; /* Hidden by default, toggled by JS */
    width: 100%;
    background-color: var(--header-main-bg, var(--header-main-bg-default));
}

.main-navigation-mobile.toggled {
    display: block;
}

.main-navigation-mobile ul#primary-menu-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation-mobile ul#primary-menu-mobile li a {
    display: block;
    padding: 0.75em 1em;
    color: var(--header-main-text, var(--header-main-text-default));
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-navigation-mobile ul#primary-menu-mobile li:last-child a {
    border-bottom: none;
}

.main-navigation-mobile ul#primary-menu-mobile li a:hover {
    background-color: var(--header-main-link-hover, var(--header-main-link-hover-default));
    color: var(--header-main-bg, var(--header-main-bg-default)); /* Or white */
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/
/* Default visibility for responsive classes */
.mobile-only {
    display: none; /* Hidden by default, shown in mobile media query */
}

.desktop-only {
    display: block; /* Or inline, inline-block, flex, etc. as appropriate for the element. Shown by default, hidden in mobile media query */
    /* If it's a flex container, use display: flex; */
}

/* Tablet and Mobile */
@media (max-width: 991px) { /* Adjust breakpoint as needed (original site uses Elementor breakpoints) */
    .desktop-only {
        display: none !important; /* Important to override inline styles from Elementor if any were kept */
    }
    .mobile-only {
        display: block !important; /* Or flex, grid depending on element */
    }
    .mobile-header-area .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .menu-toggle {
        display: block;
    }
    .main-header-area .main-navigation {
        display:none; /* Hide desktop nav */
    }
    .main-header-area .header-contact-button {
        display: none; /* Hide desktop contact button */
    }
}

/* Only Mobile */
@media (max-width: 767px) {
    /* Add any further mobile-specific adjustments */
    .top-bar {
        /* Optionally hide top-bar completely on small mobile, or re-style */
        /* display: none; */
    }
    .site-branding img {
        max-height: 50px;
    }
}

/* Add more specific styles below, organize as needed */ 