/*
Theme Name: RHC Theme
Theme URI: https://richardhcollins.com
Author: Richard H Collins
Author URI: https://richardhcollins.com
Description: Custom WordPress theme for richardhcollins.com
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rhc-theme
*/

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    color: #2d2d2d;
    background: #fff;
    line-height: 1.7;
}

a { color: #1d5a9f; text-decoration: none; }
a:hover { color: #0d3260; text-decoration: underline; }
p { margin-bottom: 1.1em; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Inner content wrapper — used inside every full-width section */
.inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}


/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    background: #1a3558;
    padding: 24px 0;
    position: relative;
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo-link { display: inline-block; }

.site-logo {
    max-height: 72px;
    width: auto;
}

.site-logo-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 30px;
    color: #fff;
    letter-spacing: 0.04em;
    font-weight: 400;
}


/* =========================================================
   NAVIGATION
   ========================================================= */
.site-nav {
    background: linear-gradient(to bottom, #daeeff 0%, #6fafd9 100%);
    border-bottom: 2px solid #4a8fc4;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: stretch;
    height: 42px;
}

.nav-list {
    display: flex;
    align-items: stretch;
    height: 100%;
    width: 100%;
    justify-content: center;
    gap: 0;
}

.nav-list li {
    display: flex;
    align-items: stretch;
    position: relative;
}

/* Separator lines between items */
.nav-list li + li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: rgba(50, 120, 190, 0.45);
}

.nav-list li a {
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a4a7a;
    text-shadow: 0 1px 0 rgba(255,255,255,0.7);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-list li a:hover {
    background: rgba(255,255,255,0.3);
    color: #0a2d55;
    text-decoration: none;
}

.nav-list li.current-menu-item a {
    background: linear-gradient(to bottom, #fff 0%, #c8e8ff 100%);
    color: #0d3260;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.08);
    border-left: 1px solid #9ecbea;
    border-right: 1px solid #9ecbea;
}


/* =========================================================
   HERO CAROUSEL
   ========================================================= */
.hero-section {
    background: #1a3558;
    padding: 28px 0 32px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.18);
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.hero-slide {
    display: none;
}

.hero-slide.active {
    display: flex;
    align-items: stretch;
    min-height: 340px;
}

/* Thumbnail column */
.hero-slide-image {
    flex: 0 0 58%;
    background: #0d2040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 32px;
    overflow: hidden;
}

.hero-slide--no-image .hero-slide-image {
    display: none;
}

.hero-image {
    display: block;
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0,0,0,0.45);
    border: 2px solid rgba(255,255,255,0.08);
}

/* Caption column */
.hero-caption {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding: 40px 44px;
    background: #1a3558;
    border-left: 3px solid rgba(255,255,255,0.1);
}

.hero-slide--no-image .hero-caption {
    flex: 1 1 100%;
    border-left: none;
    max-width: 720px;
    margin: 0 auto;
}

.hero-caption-inner { color: #fff; }

.hero-caption-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 16px;
}

.hero-caption-text {
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255,255,255,0.82);
    margin-bottom: 20px;
}

.hero-caption-link {
    display: inline-block;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.7);
    padding-bottom: 2px;
    letter-spacing: 0.03em;
    transition: opacity 0.15s;
}

.hero-caption-link:hover {
    opacity: 0.75;
    text-decoration: none;
    color: #fff;
}

/* Carousel controls */
.carousel-controls {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.carousel-dots { display: flex; gap: 8px; align-items: center; }

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.carousel-prev,
.carousel-next {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.45);
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 0.15s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255,255,255,0.35);
}


/* =========================================================
   CONTENT AREA — 70/30 SPLIT
   ========================================================= */
.content-section {
    background: #fff;
    padding: 40px 0;
}

.content-area {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.content-main {
    flex: 1 1 68%;
    min-width: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #2d2d2d;
}

.content-main p { margin-bottom: 1.2em; }

.content-main h1,
.content-main h2,
.content-main h3 {
    font-family: 'EB Garamond', Georgia, serif;
    color: #1a3558;
    font-weight: 400;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

.content-main h2 { font-size: 24px; }
.content-main h3 { font-size: 20px; }

.content-main hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 24px 0;
}

.content-main h4 { font-family: 'EB Garamond', Georgia, serif; font-size: 17px; color: #1a3558; font-weight: 400; margin-bottom: 0.5em; line-height: 1.3; }
.content-main h5 { font-family: 'EB Garamond', Georgia, serif; font-size: 15px; color: #1a3558; font-weight: 400; margin-bottom: 0.5em; line-height: 1.3; }
.content-main h6 { font-family: 'EB Garamond', Georgia, serif; font-size: 13px; color: #1a3558; font-weight: 700; margin-bottom: 0.5em; line-height: 1.3; }

.content-main strong,
.content-main b { font-weight: 700; }

.content-main em,
.content-main i { font-style: italic; }

.content-main ul {
    list-style: disc;
    padding-left: 1.6em;
    margin-bottom: 1.2em;
}

.content-main ol {
    list-style: decimal;
    padding-left: 1.6em;
    margin-bottom: 1.2em;
}

.content-main li {
    margin-bottom: 0.35em;
    line-height: 1.8;
}

.content-main ul ul,
.content-main ol ol,
.content-main ul ol,
.content-main ol ul {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.content-main ul ul { list-style: circle; }
.content-main ul ul ul { list-style: square; }

.content-main blockquote {
    border-left: 3px solid #1d5a9f;
    padding: 10px 16px;
    margin: 1.5em 0;
    font-style: italic;
    color: #555;
    background: #f9fafb;
}

.content-main blockquote p:last-child { margin-bottom: 0; }

.content-main pre,
.content-main code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
}

.content-main code { padding: 1px 5px; border-radius: 3px; }

.content-main pre {
    padding: 14px 16px;
    overflow-x: auto;
    margin-bottom: 1.2em;
    border-radius: 3px;
    line-height: 1.6;
}

/* Right sidebar */
.content-sidebar {
    flex: 0 0 30%;
    min-width: 0;
}

.sidebar-widget {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.sidebar-widget-title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #1d5a9f;
    display: inline-block;
}

.sidebar-links li {
    padding: 3px 0 3px 14px;
    position: relative;
    font-size: 13px;
    line-height: 1.7;
}

.sidebar-links li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #1d5a9f;
    font-size: 14px;
    line-height: 1.5;
}

.sidebar-links a { color: #1d5a9f; font-size: 13px; }
.sidebar-links a:hover { text-decoration: underline; }

.sidebar-profile-img {
    width: 100%;
    max-width: 200px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 8px;
}

.sidebar-profile-name {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.sidebar-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.sidebar-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #ddd;
}

.sidebar-quote {
    font-style: italic;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    border-left: 3px solid #1d5a9f;
    padding-left: 12px;
}

.sidebar-quote cite {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: #888;
    margin-top: 6px;
}


/* =========================================================
   FOOTER WIDGETS BAR
   ========================================================= */
.footer-widgets-bar {
    background: #f5f6f8;
    border-top: 1px solid #dde2e8;
    padding: 36px 0 28px;
}

.footer-widgets-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.footer-widget-col { flex: 1; min-width: 0; }

.footer-widget-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #1d5a9f;
    display: inline-block;
}

.footer-widget-links li,
.footer-widget-posts li {
    padding: 3px 0 3px 12px;
    position: relative;
    font-size: 12px;
    line-height: 1.8;
}

.footer-widget-links li::before,
.footer-widget-posts li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #1d5a9f;
    font-size: 14px;
    line-height: 1.4;
}

.footer-widget-links a,
.footer-widget-posts a {
    color: #1d5a9f;
    font-size: 12px;
}

.footer-widget-links a:hover,
.footer-widget-posts a:hover { text-decoration: underline; }

.footer-gallery-thumbs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.footer-gallery-thumbs img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 1px solid #ccc;
}

.observations-quote {
    font-size: 12px;
    color: #555;
    line-height: 1.7;
    border-left: 3px solid #1d5a9f;
    padding-left: 12px;
    font-style: italic;
}

.observations-quote p { margin-bottom: 4px; }
.observations-quote cite { font-style: normal; font-size: 11px; color: #888; }


/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: #1a3558;
    color: #a8bcd0;
    padding: 28px 0 20px;
    text-align: center;
}

.footer-nav-list {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-nav-list li + li::before {
    content: '|';
    color: #4a6a8a;
    padding: 0 10px;
}

.footer-nav-list li {
    display: flex;
    align-items: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.footer-nav-list li a {
    color: #a8bcd0;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-nav-list li a:hover { color: #fff; text-decoration: none; }

.footer-social { margin-bottom: 16px; }

.rss-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin: 0 auto;
    opacity: 0.65;
    filter: brightness(0) invert(1);
}

/* =========================================================
   WPCOL COLUMN SHORTCODES (replaces abandoned WP-Columns plugin)
   ========================================================= */
.wpcol { float: left; margin-right: 3%; min-height: 1px; }
.wpcol-last  { margin-right: 0; }
.wpcol-clear { clear: both; display: block; height: 0; overflow: hidden; visibility: hidden; }

.wpcol-1half   { width: 48.5%; }
.wpcol-1third  { width: 30.8%; }
.wpcol-2third  { width: 66.2%; }
.wpcol-1fourth { width: 22.75%; }
.wpcol-3fourth { width: 74.25%; }
.wpcol-1sixth  { width: 13.83%; }
.wpcol-5sixth  { width: 83.17%; }


/* =========================================================
   ABOUT PAGE — 3-COLUMN FAMILY HISTORY LAYOUT
   ========================================================= */
.about-columns {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 24px;
}

.about-col--left,
.about-col--right {
    flex: 0 0 22%;
    min-width: 0;
}

.about-col--center {
    flex: 1 1 0;
    min-width: 0;
}

.about-col--center ul {
    list-style: none;
    padding-left: 0;
}

.about-col--center ul li {
    margin-bottom: 1.4em;
}

.about-portrait {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
    border: 1px solid #dde3ec;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.about-inline-img {
    float: left;
    margin: 0 16px 12px 0;
    max-width: 48%;
    border: 1px solid #dde3ec;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.about-inline-img + p { overflow: hidden; }

.about-service-note {
    font-size: 13px;
    color: #555;
    border-top: 1px solid #dde3ec;
    padding-top: 12px;
    margin-top: 4px;
}

.about-service-note p {
    margin-bottom: 0.7em;
}

.about-service-note em {
    font-weight: 600;
    font-style: italic;
}

@media (max-width: 820px) {
    .about-columns {
        flex-direction: column;
    }
    .about-col--left,
    .about-col--right {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }
    .about-portrait {
        width: calc(33% - 8px);
        margin-bottom: 0;
    }
    .about-inline-img {
        float: none;
        max-width: 60%;
        margin: 0 auto 12px;
    }
}


/* =========================================================
   FOOTER
   ========================================================= */
.footer-copyright {
    font-size: 10px;
    color: #6a8aaa;
    letter-spacing: 0.03em;
}
