/*
Theme Name:  Running Star Ranch
Theme URI:   https://www.runningstarranch.com
Author:      Running Star Ranch
Description: Custom WordPress theme for Running Star Ranch, converted from the original Weebly design.
Version:     1.2.1
License:     GNU General Public License v2 or later
Text Domain: runningstarranch
*/

/* ── Reset ─────────────────────────────────────────────────────────────── */
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form,
body, html, div.paragraph, p, blockquote, fieldset, input {
    margin: 0;
    padding: 0;
}
a img { border: 0; }
a     { text-decoration: none; }

/* ── Base ───────────────────────────────────────────────────────────────── */
body {
    font-family: 'Open Sans', Helvetica, sans-serif;
    background: #242424;
}

.container {
    margin: 0 auto;
    width: 960px;
}

/* ── Structural wrappers ────────────────────────────────────────────────── */
#total-wrap {
    position: relative;
}

#total-wrap,
#banner-wrap,
#main-wrap,
#footer-wrap {
    width: 100%;
    min-width: 960px;
}

#banner-wrap,
#main-wrap {
    background: #fff;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
div.paragraph a,
p a,
h2 a,
.blog-comments-bottom a {
    color: #757575;
    border-bottom: 1px solid #bdbdbd;
}
div.paragraph a:hover,
p a:hover,
h2 a:hover,
.blog-comments-bottom a:hover {
    color: #555;
    border-bottom: 1px solid #555;
}

blockquote {
    font-style: italic;
    border-left: 4px solid #242424;
    margin: 10px 0;
    padding-left: 20px;
    line-height: 1.8;
    font-size: 13px;
    color: #999;
}

h2 {
    font-size: 17px;
    padding: .5em 0 0.8em 0;
    letter-spacing: 1px;
    line-height: 1.2;
    font-weight: 600;
    color: #373737;
}
h2 a { color: #373737; }

div.paragraph,
p {
    font-size: 13px;
    line-height: 180%;
    color: #464646;
    padding: .5em 0;
}

div.paragraph ul,
div.paragraph ol { padding-left: 3em !important; margin: 5px 0 !important; }
div.paragraph li  { padding-left: 5px !important; margin: 3px 0 0 !important; }
div.paragraph ul,
div.paragraph ul li { list-style: disc outside !important; }
div.paragraph ol,
div.paragraph ol li { list-style: decimal outside !important; }

/* ── Dark top section ───────────────────────────────────────────────────── */
.top-background {
    background: #242424;
    width: 100%;
    min-width: 960px;
    position: relative;       /* anchors #nav-wrap absolute positioning */
}

/* Landing page: full-height hero (500 px) */
.landing-page .top-background { height: 500px; }

/* Interior pages: compact dark bar — fixed height so absolutely-positioned
   #nav-wrap doesn't cause the div to collapse and overlap #main-wrap. */
body:not(.landing-page) .top-background { height: 500px; }

/* Decorative horse silhouette background */
.cross {
    width: 700px;
    height: 500px;
    background: url(theme/header-runningstarranch-blackonblack.jpg) no-repeat;
    position: absolute;
    left: 50%;
    margin-left: -350px;
    z-index: 0;
    pointer-events: none;
}

/* ── Header bar (phone + social) ────────────────────────────────────────── */
/* Sit above #nav-wrap (z-index 3) so the phone/social links are clickable, but
   make the big empty header table click-through so it doesn't block the nav. */
#header-wrap { position: relative; z-index: 6; pointer-events: none; }
#header-wrap a { pointer-events: auto; }

#header {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    float: left;
    height: 500px;
    margin-top: 5px;
    position: relative;
    z-index: 4;
}
#header td { vertical-align: top; text-align: left; }

#header-right {}
#header-right table { float: right; width: 1px; }
#header-right td { padding: 0; }

#header-right .phone-number .rsr-phone {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
}

/* ── Social icons ───────────────────────────────────────────────────────── */
.rsr-social { position: relative; display: inline-block; white-space: nowrap; }

#header-right .rsr-social { vertical-align: middle; margin-left: 10px; }

.rsr-social a {
    display: inline-block;
    vertical-align: top;
    margin: 0 0 0 3px;
    width: 32px;
    height: 32px;
    background-image: url(theme/social.png);
    -webkit-transition: background 0.5s ease-out;
    transition: background 0.5s ease-out;
    overflow: hidden;
    text-indent: -9999px;
}

.rsr-social a.social-facebook      { background-position:    0    0; }
.rsr-social a.social-facebook:hover { background-position:    0  -40px; }
.rsr-social a.social-mail           { background-position: -119px   0; }
.rsr-social a.social-mail:hover     { background-position: -119px -40px; }

/* ── Nav wrap ───────────────────────────────────────────────────────────── */
#nav-wrap {
    position: absolute;
    top: 0;
    width: 100%;
    overflow: hidden;
    z-index: 3;
}

.header-align-outer {
    display: table;
    overflow: hidden;
    padding-bottom: 15px;
}
/* Landing page: tall centred layout */
.landing-page .header-align-outer { height: 485px; }
/* Interior: compact — must match .top-background fixed height above */
body:not(.landing-page) .header-align-outer { height: 485px; padding-bottom: 0; }

.header-align-mid  { display: table-cell; vertical-align: middle; }
.header-align-inner {}

/* ── Logo ───────────────────────────────────────────────────────────────── */
#logo,
#logo a {
    color: #fff;
    font: 500 50px 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 5px;
    z-index: 2;
    position: relative;
    text-align: center;
    display: block;
}
#logo a:hover { text-decoration: none; }

/* ── Primary navigation ─────────────────────────────────────────────────── */
.nav-container {
    float: right;
    position: relative;
    left: -50%;
    text-align: left;
    margin-top: 10px;
    z-index: 2;
}

.nav-container ul.site-nav {
    list-style: none;
    position: relative;
    left: 50%;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.nav-container ul.site-nav > li {
    float: left;
    position: relative;
}

.nav-container ul.site-nav > li > a {
    text-decoration: none;
    font: bold 18px 'Josefin Sans', sans-serif;
    text-transform: uppercase;
    margin: 10px 15px;
    float: left;
    color: #fff;
    padding: 1px 2px;
    text-align: center;
    white-space: nowrap;
}
.nav-container ul.site-nav > li > a:hover {
    border-bottom: 1px dashed #fff;
    padding-bottom: 0;
}
.nav-container ul.site-nav > li.current-menu-item > a,
.nav-container ul.site-nav > li.current_page_item > a {
    border-bottom: 1px solid #fff;
    padding-bottom: 0;
}

/* ── Dropdown sub-menu ──────────────────────────────────────────────────── */
.nav-container .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5000;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    min-width: 200px;
}

.nav-container li:hover > .sub-menu { display: block; }

.nav-container .sub-menu li {
    position: relative;
    margin: 0;
    padding: 0;
    width: 200px;
    text-align: left;
}

.nav-container .sub-menu li a {
    position: relative;
    display: block;
    background: #f9f9f8;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    text-decoration: none;
    font-size: 13px;
    font-weight: normal;
    line-height: 1;
    padding: 10px;
    color: #000;
    float: none;
    margin: 0;
    white-space: nowrap;
    text-transform: none;
    font-family: 'Open Sans', Helvetica, sans-serif;
}
.nav-container .sub-menu li a:hover {
    background: #e3e3e3;
    color: #757575;
    border-bottom: 1px solid #ccc;
}

/* ── Landing banner (front page only) ──────────────────────────────────── */
#banner-wrap {
    background: #f2f2f2;
    padding: 30px 0;
    float: left;
    width: 100%;
}

#banner { overflow: hidden; }

/* Horse image side */
#bannerleft {
    float: right;
    width: 400px;
}
.landing-page .wsite-header,
.rsr-banner-image {
    width: 400px;
    height: 300px;
    background: url(theme/banner-landing.jpg) no-repeat;
}

/* ── Front-page banner slideshow (crossfade, CSS-only) ──────────────────── */
.rsr-slideshow {
    position: relative;
    width: 400px;
    height: 300px;
    overflow: hidden;
    background: #242424;
}
.rsr-slideshow .rsr-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: rsrSlideFade 24s infinite;
}
.rsr-slideshow .rsr-slide:nth-child(1) { animation-delay:  0s; }
.rsr-slideshow .rsr-slide:nth-child(2) { animation-delay:  6s; }
.rsr-slideshow .rsr-slide:nth-child(3) { animation-delay: 12s; }
.rsr-slideshow .rsr-slide:nth-child(4) { animation-delay: 18s; }

@keyframes rsrSlideFade {
    0%   { opacity: 0; }
    3%   { opacity: 1; }
    22%  { opacity: 1; }
    25%  { opacity: 0; }
    100% { opacity: 0; }
}

/* Respect reduced-motion: show the first slide, no animation */
@media (prefers-reduced-motion: reduce) {
    .rsr-slideshow .rsr-slide { animation: none; }
    .rsr-slideshow .rsr-slide:nth-child(1) { opacity: 1; }
}

/* Text + CTA side */
#bannerright {
    float: left;
    width: 500px;
    height: 300px;
}
#bannerright h2 {
    font-size: 24px;
    font-weight: 300;
    padding: 0;
    line-height: 24px;
}
#bannerright div.paragraph,
#bannerright p { padding: 20px 0; line-height: 140%; }

.landing-banner-outer { display: table; overflow: hidden; }
.landing-banner-mid   { display: table-cell; vertical-align: middle; }
.landing-banner-inner {}

/* ── Main content ───────────────────────────────────────────────────────── */
#main-wrap .container { padding: 50px 0; }

#wsite-content,
.entry-content { min-height: 500px; }

.wsite-not-footer { text-align: left; }
.wsite-footer     { clear: both; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.wsite-button,
a.wsite-button {
    display: inline-block;
    padding: 7px 12px;
    background: #333;
    text-transform: uppercase;
    border-radius: 2px;
}
.wsite-button:hover           { background: #000; }
.wsite-button:active          { background: #222; }
.wsite-button-inner {
    color: #fff !important;
    padding: 0;
    background: none !important;
    font: 500 18px 'Open Sans', sans-serif;
    height: auto;
    letter-spacing: 1px;
}
.wsite-button-large {
    color: #fff !important;
    padding: 5px 20px;
}
.wsite-button-large:hover  { background: #000; }
.wsite-button-large:active { background: #222; }
.wsite-button-large .wsite-button-inner { background: none !important; padding: 0; height: auto; }

.wsite-button-highlight,
.wsite-button-large.wsite-button-highlight { background: #242424; }
.wsite-button-highlight:hover,
.wsite-button-large.wsite-button-highlight:hover { background: #757575; }
.wsite-button-highlight:active,
.wsite-button-large.wsite-button-highlight:active { background: #555; }
.wsite-button-highlight .wsite-button-inner { background: none; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.wsite-form-label          { display: inline-block; font-size: 14px; }
.form-radio-container      { font-size: 13px; }
.wsite-form-input,
.wsite-search-element-input {
    border: 1px #ccc solid;
    background: none;
    border-radius: 3px;
    padding: 7px 5px !important;
}

/* ── Blog / content helpers ─────────────────────────────────────────────── */
.blog-post .blog-separator          { display: none; }
.blog-post .blog-header             { margin-bottom: 20px !important; }
.blog-sidebar h2                    { padding: 1em 0 .3em; }
.blog-sidebar h2.blog-author-title  { padding: 0 0 0.3em; }
h2.blog-title,
.blog-post .blog-header h2.blog-title { padding-bottom: 5px !important; }
h2.blog-title a,
.blog-post .blog-header h2.blog-title a { border: none; }

/* ── Images ─────────────────────────────────────────────────────────────── */
.wsite-image         { overflow: hidden; }
.wsite-image img     { max-width: 100%; height: auto; }
.galleryImageBorder  { border: 1px solid #ddd; }

/* Embedded iframes (Google map / calendar) keep their fixed width attr, which
   overflows narrow screens — cap them to the content column. */
#wsite-content iframe { max-width: 100%; }

/* Weebly custom-HTML blocks (.wcustomhtml) can hold a fixed-width embed — e.g.
   the 800px Google Calendar. Bound the block and let an oversized embed scroll
   inside it rather than stretching the whole page on small screens. */
.wcustomhtml { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
#footer-wrap {
    background: #010101;
    padding: 50px 0;
    color: #eee;
    float: left;
    width: 100%;
    min-width: 960px;
    box-sizing: border-box;
}
#footer-wrap .container {}
#footer-wrap .container h2             { color: #fff; }
#footer-wrap .container div.paragraph,
#footer-wrap .container p              { color: #ccc; }
#footer-wrap blockquote                { border-left-color: #777; }

#footer-wrap .container .wsite-form-input { border: 1px #333 solid; background: #222; color: #fff; }

#footer-wrap .footer-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
#footer-wrap .footer-col { flex: 1; }
#footer-wrap .footer-col:first-child { flex: 0 0 auto; }

#footer-wrap .footer-copyright { color: #ccc; font-size: 13px; }
#footer-wrap .footer-copyright a { color: #aaa; border-bottom: 1px solid #555; }

#footer-wrap h2.footer-heading { color: #fff; }

/* Contact form inside footer */
#footer-wrap .wpcf7-form input[type="text"],
#footer-wrap .wpcf7-form input[type="email"],
#footer-wrap .wpcf7-form textarea {
    border: 1px #333 solid;
    background: #222;
    color: #fff;
    border-radius: 3px;
    padding: 7px 5px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Open Sans', Helvetica, sans-serif;
    font-size: 13px;
}
#footer-wrap .wpcf7-form label   { color: #ccc; font-size: 14px; }
#footer-wrap .wpcf7-submit,
#footer-wrap input[type="submit"] {
    display: inline-block;
    padding: 7px 20px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 2px;
    text-transform: uppercase;
    font: 500 15px 'Open Sans', sans-serif;
    cursor: pointer;
    letter-spacing: 1px;
    margin-top: 10px;
}
#footer-wrap .wpcf7-submit:hover { background: #666; }

/* ── Weebly multicol table → responsive columns ─────────────────────────── */
.wsite-multicol-table  { width: 100%; border-collapse: collapse; }
.wsite-multicol-col    { vertical-align: top; }

/* ── Responsive (tablet / mobile) ────────────────────────────────────────── */
@media screen and (max-width: 980px) {
    body { overflow-x: hidden; }

    .container,
    #total-wrap,
    #banner-wrap,
    #main-wrap,
    #footer-wrap,
    .top-background { min-width: 0; width: 100%; }

    .container { width: 100%; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }

    /* Collapse the tall fixed-height dark hero into a compact auto-height header */
    .landing-page .top-background,
    body:not(.landing-page) .top-background { height: auto; padding-bottom: 14px; }

    #header { height: auto; }

    /* Logo: show the full image (contained + centred) instead of clipping the
       fixed 700px background on narrow screens. */
    .cross {
        position: relative;
        left: 0;
        margin-left: 0;
        width: 100%;
        height: 150px;
        background-size: contain;
        background-position: center;
    }

    /* Let the logo + nav flow in normal order instead of absolute positioning */
    #nav-wrap { position: static; overflow: visible; }
    .landing-page .header-align-outer,
    body:not(.landing-page) .header-align-outer {
        display: block;
        height: auto;
        padding-bottom: 0;
    }
    .header-align-mid { display: block; }

    #logo { display: none; }   /* anchor is empty; branding comes from .cross */

    .nav-container { float: none; left: 0; margin-top: 4px; text-align: center; }
    .nav-container ul.site-nav { left: 0; display: inline-block; }
    .nav-container ul.site-nav > li { float: none; display: inline-block; }
    .nav-container ul.site-nav > li > a {
        float: none;
        display: inline-block;
        margin: 6px 12px;
        font-size: 15px;
    }

    #bannerleft,
    #bannerright { float: none; width: 100%; }
    .rsr-banner-image,
    .landing-page .wsite-header { width: 100%; background-size: cover; }
    .rsr-slideshow { width: 100%; height: 260px; margin-bottom: 20px; }
    #bannerright { height: auto; }

    /* Keep all content imagery inside the viewport */
    #wsite-content img,
    #banner img { max-width: 100%; height: auto; }

    .wsite-multicol-col { display: block !important; width: 100% !important; }

    #main-wrap .container { padding-top: 30px; padding-bottom: 30px; }

    #footer-wrap { padding: 35px 0; }
    #footer-wrap .footer-inner { flex-direction: column; gap: 25px; }
}

/* ── Small phones ────────────────────────────────────────────────────────── */
@media screen and (max-width: 600px) {
    .container { padding-left: 16px; padding-right: 16px; }

    .cross { height: 120px; }

    #header-right .phone-number .rsr-phone { font-size: 12px; }

    .nav-container ul.site-nav > li > a { margin: 5px 9px; font-size: 14px; }

    #banner-wrap { padding: 20px 0; }
    #bannerright h2 { font-size: 20px; line-height: 1.2; }

    h2 { font-size: 16px; }
}
