/*
Theme Name: JRB Productions
Theme URI: https://jrbproductions.com
Author: JRB Productions
Author URI: https://jrbproductions.com
Description: A custom WordPress theme for JRB Productions — music, art, and creative storytelling rooted in hope. Features a clean, blue-based color palette, split hero section, and Expressions of Hope showcase.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jrb-productions
Tags: custom-menu, custom-logo, featured-images, theme-options, one-column

Always Find the Hope.
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Primary Blues */
    --jrb-navy:        #1B3A5C;
    --jrb-blue:        #2E6EA6;
    --jrb-sky:         #4A90C4;
    --jrb-light-blue:  #D6E8F7;
    --jrb-ice:         #EDF4FB;

    /* Neutrals */
    --jrb-white:       #FFFFFF;
    --jrb-off-white:   #F8FAFB;
    --jrb-dark:        #1E2A3A;
    --jrb-body-text:   #3D4F5F;
    --jrb-muted:       #7A8D9C;
    --jrb-border:      #D0DCE5;

    /* Accent */
    --jrb-gold:        #C8A96E;
    --jrb-gold-light:  #F5EDD8;

    /* Typography */
    --font-heading:    'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding:  5rem 0;
    --container-width:  1200px;
    --container-narrow: 800px;

    /* Transitions */
    --transition:      0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--jrb-body-text);
    background-color: var(--jrb-white);
}

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

a {
    color: var(--jrb-blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover,
a:focus {
    color: var(--jrb-navy);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--jrb-navy);
    line-height: 1.25;
    margin-bottom: 0.75em;
    font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
}

blockquote {
    border-left: 4px solid var(--jrb-gold);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: var(--jrb-ice);
    font-style: italic;
    color: var(--jrb-navy);
    font-family: var(--font-heading);
    font-size: 1.125rem;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--section-padding);
}

.section--blue {
    background-color: var(--jrb-ice);
}

.section--navy {
    background-color: var(--jrb-navy);
    color: var(--jrb-white);
}

.section--navy h2,
.section--navy h3 {
    color: var(--jrb-white);
}

.section--navy p {
    color: var(--jrb-light-blue);
}

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

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--jrb-gold);
    border-radius: 2px;
}

.section-header p {
    color: var(--jrb-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn--primary {
    background: var(--jrb-blue);
    color: var(--jrb-white);
    border-color: var(--jrb-blue);
}

.btn--primary:hover {
    background: var(--jrb-navy);
    border-color: var(--jrb-navy);
    color: var(--jrb-white);
}

.btn--outline {
    background: transparent;
    color: var(--jrb-white);
    border-color: var(--jrb-white);
}

.btn--outline:hover {
    background: var(--jrb-white);
    color: var(--jrb-navy);
}

.btn--outline-blue {
    background: transparent;
    color: var(--jrb-blue);
    border-color: var(--jrb-blue);
}

.btn--outline-blue:hover {
    background: var(--jrb-blue);
    color: var(--jrb-white);
}

.btn--gold {
    background: var(--jrb-gold);
    color: var(--jrb-white);
    border-color: var(--jrb-gold);
}

.btn--gold:hover {
    background: #b8963e;
    border-color: #b8963e;
    color: var(--jrb-white);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--jrb-white);
    border-bottom: 1px solid var(--jrb-border);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(27, 58, 92, 0.1);
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-branding .custom-logo {
    height: 45px;
    width: auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--jrb-navy);
    margin: 0;
}

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

.site-tagline {
    font-size: 0.75rem;
    color: var(--jrb-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
}

/* Primary Navigation */
.primary-nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.primary-nav a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--jrb-body-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all var(--transition);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    color: var(--jrb-blue);
    background: var(--jrb-ice);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--jrb-navy);
    position: relative;
    transition: var(--transition);
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--jrb-navy);
    transition: var(--transition);
}

.menu-toggle .hamburger::before { top: -7px; }
.menu-toggle .hamburger::after  { top: 7px; }

/* ============================================
   HERO SECTION — SPLIT LAYOUT
   ============================================ */
.hero {
    margin-top: 77px; /* offset for fixed header */
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 85vh;
    overflow: hidden;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4rem 4rem 3rem;
    background: var(--jrb-navy);
    color: var(--jrb-white);
}

.hero__label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--jrb-gold);
    margin-bottom: 1.25rem;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--jrb-white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--jrb-light-blue);
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero__tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--jrb-gold);
    margin-bottom: 2.5rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
    overflow: hidden;
    background: var(--jrb-light-blue);
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--jrb-light-blue) 0%, var(--jrb-sky) 100%);
    color: var(--jrb-navy);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-align: center;
    padding: 2rem;
}

/* ============================================
   EXPRESSIONS OF HOPE — 3 CARDS
   ============================================ */
.expressions {
    padding: var(--section-padding);
    background: var(--jrb-off-white);
}

.expressions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.expression-card {
    background: var(--jrb-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(27, 58, 92, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.expression-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(27, 58, 92, 0.14);
}

.expression-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--jrb-light-blue);
}

.expression-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.expression-card:hover .expression-card__image img {
    transform: scale(1.04);
}

.expression-card__icon {
    position: absolute;
    bottom: -24px;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--jrb-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(27, 58, 92, 0.2);
    z-index: 2;
}

.expression-card__icon svg {
    width: 22px;
    height: 22px;
    fill: var(--jrb-white);
}

.expression-card__body {
    padding: 2.25rem 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.expression-card__tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--jrb-gold);
    margin-bottom: 0.5rem;
}

.expression-card__title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    color: var(--jrb-navy);
    margin-bottom: 0.75rem;
}

.expression-card__desc {
    color: var(--jrb-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
    flex: 1;
}

.expression-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jrb-blue);
}

.expression-card__link:hover {
    color: var(--jrb-navy);
    gap: 0.75rem;
}

.expression-card__link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform var(--transition);
}

.expression-card__link:hover svg {
    transform: translateX(3px);
}

/* ============================================
   ABOUT / MISSION STRIP
   ============================================ */
.mission {
    padding: var(--section-padding);
    background: var(--jrb-navy);
    color: var(--jrb-white);
    text-align: center;
}

.mission h2 {
    color: var(--jrb-white);
    margin-bottom: 1rem;
}

.mission p {
    color: var(--jrb-light-blue);
    font-size: 1.125rem;
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.mission__tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--jrb-gold);
    margin-top: 1rem;
}

/* ============================================
   LATEST / BLOG PREVIEW
   ============================================ */
.latest-posts {
    padding: var(--section-padding);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--jrb-white);
    border: 1px solid var(--jrb-border);
    transition: box-shadow var(--transition);
}

.post-card:hover {
    box-shadow: 0 4px 20px rgba(27, 58, 92, 0.1);
}

.post-card__image {
    height: 200px;
    background: var(--jrb-light-blue);
    overflow: hidden;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__body {
    padding: 1.5rem;
}

.post-card__date {
    font-size: 0.8125rem;
    color: var(--jrb-muted);
    margin-bottom: 0.5rem;
}

.post-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--jrb-navy);
    margin-bottom: 0.5rem;
}

.post-card__title a {
    color: inherit;
}

.post-card__title a:hover {
    color: var(--jrb-blue);
}

.post-card__excerpt {
    font-size: 0.9375rem;
    color: var(--jrb-muted);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--jrb-dark);
    color: var(--jrb-muted);
    padding: 3.5rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.footer-brand .site-title {
    color: var(--jrb-white);
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
}

.footer-brand .site-tagline {
    color: var(--jrb-gold);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--jrb-muted);
    max-width: 340px;
}

.footer-nav h4,
.footer-connect h4 {
    color: var(--jrb-white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: var(--jrb-muted);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--jrb-white);
}

.footer-connect p {
    font-size: 0.9375rem;
    color: var(--jrb-muted);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--jrb-muted);
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--jrb-blue);
    color: var(--jrb-white);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.8125rem;
    color: var(--jrb-muted);
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.page-hero {
    margin-top: 77px;
    background: linear-gradient(135deg, var(--jrb-navy) 0%, var(--jrb-blue) 100%);
    color: var(--jrb-white);
    text-align: center;
    padding: 5rem 2rem 4rem;
}

.page-hero h1 {
    color: var(--jrb-white);
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: var(--jrb-light-blue);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 4rem 0;
}

.page-content .container {
    max-width: var(--container-narrow);
}

/* Booking Form Section */
.booking-section {
    padding: var(--section-padding);
    background: var(--jrb-ice);
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--jrb-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(27, 58, 92, 0.08);
}

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

.booking-form label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--jrb-navy);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--jrb-border);
    border-radius: 4px;
    background: var(--jrb-white);
    color: var(--jrb-body-text);
    transition: border-color var(--transition);
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
    outline: none;
    border-color: var(--jrb-blue);
    box-shadow: 0 0 0 3px rgba(46, 110, 166, 0.15);
}

.booking-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--jrb-white);
    border: 1px solid var(--jrb-border);
}

.video-card__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-card__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card__body {
    padding: 1.25rem;
}

.video-card__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--jrb-navy);
}

/* Bio Page */
.bio-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.bio-photo {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(27, 58, 92, 0.12);
}

.bio-photo img {
    width: 100%;
    height: auto;
}

.bio-text h2 {
    margin-bottom: 1rem;
}

.bio-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* Music Page - Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.album-card {
    background: var(--jrb-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(27, 58, 92, 0.08);
    text-align: center;
    transition: transform var(--transition);
}

.album-card:hover {
    transform: translateY(-3px);
}

.album-card__art {
    aspect-ratio: 1;
    background: var(--jrb-light-blue);
    overflow: hidden;
}

.album-card__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-card__body {
    padding: 1.25rem;
}

.album-card__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--jrb-navy);
    margin-bottom: 0.25rem;
}

.album-card__year {
    font-size: 0.8125rem;
    color: var(--jrb-muted);
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.alignleft   { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright  { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 2rem auto; }

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--jrb-muted);
    text-align: center;
    padding-top: 0.5rem;
}

.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;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__content {
        padding: 4rem 2.5rem;
        order: 1;
    }

    .hero__image {
        min-height: 350px;
        order: 0;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .expressions__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .bio-layout {
        grid-template-columns: 1fr;
    }

    .bio-photo {
        max-width: 350px;
        margin: 0 auto;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem 0;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--jrb-white);
        border-top: 1px solid var(--jrb-border);
        box-shadow: 0 4px 20px rgba(27, 58, 92, 0.1);
    }

    .primary-nav.active {
        display: block;
    }

    .primary-nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    .primary-nav a {
        padding: 0.75rem 2rem;
        border-radius: 0;
    }

    .hero__content {
        padding: 3rem 1.5rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.0625rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .album-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-hero {
        padding: 3.5rem 1.5rem 3rem;
    }
}
