/*
Theme Name: RCL Branch 003
Theme URI: https://rclbranch003.ca/
Author: Branch 003
Description: Custom WordPress theme for Royal Canadian Legion JBC VC Branch 003, Glace Bay.
Version: 1.0
Text Domain: rcl-branch-003
*/

/* Branch 003 colours */

:root {
    --legion-blue: #00529B;
    --branch-dark: #333333;
    --header-grey: #4a4a4a;
    --light-grey: #f2f2f2;
    --white: #ffffff;
}

/* Basic reset */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--branch-dark);
    background: var(--white);
    line-height: 1.6;
}

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--legion-blue);
    line-height: 1.2;
}

/* Links */

a {
    color: var(--legion-blue);
}

a:hover {
    text-decoration: underline;
}
/* =========================================
   RCL Branch 003 - Site Layout
   ========================================= */

/* Main site header */

.site-header {
    background: var(--header-grey);
    color: var(--white);
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo {
    width: 180px;
    flex: 0 0 180px;
    display: flex;
    align-items: center;
}

.header-logo-left {
    justify-content: flex-end;
}

.header-logo-right {
    justify-content: flex-start;
}

.header-title {
    flex: 1;
    text-align: center;
    color: var(--white);
}

.header-main-title {
    font-size: 30px;
    font-weight: 700;
}

.header-branch-title {
    font-size: 26px;
    font-weight: 700;
}

.header-tagline {
    margin-top: 8px;
    font-size: 18px;
}

.header-subtitle {
    font-size: 16px;
}

/* Navigation */

.main-navigation {
    background: var(--legion-blue);
}

.primary-menu {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    display: block;
    padding: 14px 18px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.primary-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Main page */

.site-main {
    padding: 40px 20px;
}

.page-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-title {
    margin: 0;
    color: var(--legion-blue);
    font-size: 36px;
}

/* Three-column page layout */

.page-columns {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
}

.sidebar-left {
    flex: 0 0 20%;
    width: 20%;
}

.content-area {
    flex: 1 1 60%;
    width: 60%;
    min-width: 0;
}

.sidebar-right {
    flex: 0 0 20%;
    width: 20%;
}

/* Widgets */

.widget {
    margin-bottom: 25px;
    padding: 20px;
    background: #f2f2f2;
    border: 1px solid #dddddd;
    border-radius: 10px;
}

.widget-title {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--legion-blue);
    font-size: 20px;
    font-weight: 700;
}

.widget p {
    margin-top: 0;
    margin-bottom: 12px;
}

.widget ul {
    margin: 0;
    padding-left: 20px;
}

.widget li {
    margin-bottom: 8px;
}

.widget a {
    color: var(--legion-blue);
    font-weight: 600;
    text-decoration: none;
}

.widget a:hover {
    text-decoration: underline;
}
}

.widget-title {
    margin-top: 0;
    color: var(--legion-blue);
    font-size: 20px;
}

/* Content */

.entry-content {
    font-size: 17px;
    color: #555555;
}

.entry-content p {
    margin-top: 0;
    margin-bottom: 18px;
}

.entry-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--legion-blue);
}

.entry-content h3 {
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--legion-blue);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.entry-content li {
    margin-bottom: 8px;
}
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--legion-blue);
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Buttons */

.button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--legion-blue);
    color: var(--white);
    border: 1px solid var(--legion-blue);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.button:hover,
.wp-block-button__link:hover {
    opacity: 0.9;
}

/* Footer */

.site-footer {
    margin-top: 50px;
    background: var(--header-grey);
    color: var(--white);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    color: var(--white);
    margin-top: 0;
}

.footer-column a {
    color: var(--white);
}

.footer-bottom {
    padding: 15px 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================================
   Responsive Layout
   ========================================= */

@media (max-width: 900px) {

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

    .sidebar-left,
    .sidebar-right {
        width: 100%;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .header-logo {
        width: 120px;
        flex-basis: 120px;
    }

    .header-main-title {
        font-size: 24px;
    }

    .header-branch-title {
        font-size: 21px;
    }

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

@media (max-width: 600px) {

    .header-container {
        padding: 15px;
    }

    .header-logo {
        width: 80px;
        flex-basis: 80px;
    }

    .header-main-title {
        font-size: 20px;
    }

    .header-branch-title {
        font-size: 18px;
    }

    .header-tagline {
        font-size: 15px;
    }

    .header-subtitle {
        font-size: 14px;
    }

    .site-main {
        padding: 25px 15px;
    }

    .page-title {
        font-size: 30px;
    }
}
/* Sidebar test links / buttons */

.sidebar .widget a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
/* Sidebar action links */

.sidebar .widget h2 a,
.sidebar .widget h3 a,
.sidebar .widget h4 a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 45px;
    box-sizing: border-box;
    padding: 10px 15px;
    background: var(--legion-blue);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    line-height: 1.2;
}

.sidebar .widget h2 a:hover,
.sidebar .widget h3 a:hover,
.sidebar .widget h4 a:hover {
    opacity: 0.9;
}
/* Branch 003 sidebar H2 links */

.sidebar h2 a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    background: var(--legion-blue) !important;
    color: #ffffff !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    line-height: 1.2 !important;
}

.sidebar h2 a:hover {
    opacity: 0.9 !important;
}
/* Facebook link in header */
.header-facebook {
    margin-top: 10px;
    text-align: center;
}

.header-facebook a {
    display: inline-block;
    padding: 8px 16px;
    background: #1877f2;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
}

.header-facebook a:hover {
    background: #145dbf;
    color: #ffffff !important;
    text-decoration: none;
}