/*
 Theme Name:   Sinatra Child
 Theme URI:    http://www.markslater.com/twenty-fifteen-child/
 Description:  Sinatra Child Theme
 Author:       Mark Slater
 Author URI:   http://www.markslater.net
 Template:     sinatra
 Version:      1.0.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  sinatrachild
*/

#content textarea, #content input[type="text"], #content input[type="number"], #content input[type="email"], #content input[type=password], #content input[type=tel], #content input[type=url], #content input[type=search], #content input[type=date] {
    background-color:#ffffff;
}

table:not(.variations):not(.shop_table) tbody tr:nth-child(2n+1) {
    background-color: #fff;
}

table:not(.variations):not(.shop_table) {
    background-color: #999;
}

.swiper-container {
	background-color: black;
}


#main .wp-block-tag-cloud a 
{
	color: whitesmoke !important;
}
#main .wp-block-tag-cloud a:hover {
	color: #d88c00 !important;
}

#main .white-hover a:hover
{
	color: white !important;
}

.button {
  background-color: #04AA6D; /* Green */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.sinatra-logo .site-description {
    color: #ffffff;
		text-align: right;
		padding-right: .3em;
    font-variant: small-caps;
}

 /* 
      Glossary Sidebar Styles
      - Designed to be compatible with themes like Sinatra.
      - It is responsive and adjusts for mobile screens.
    */
    .glossary-sidebar {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
        padding: 20px;
        background-color: #f9f9f9;
        border-left: 3px solid #4a934a; /* A gentle green accent */
        line-height: 1.6;
    }

    /* Styles for desktop screens */
    @media (min-width: 769px) {
        .glossary-sidebar {
            position: -webkit-sticky; /* For Safari */
            position: sticky;
            top: 40px; /* Adjust this value based on your theme's sticky header height */
            max-height: 90vh; /* Prevents the sidebar from being too long */
            overflow-y: auto; /* Adds a scrollbar if content overflows */
            margin-left: 20px;
        }
    }

    .glossary-sidebar h2 {
        font-size: 1.4em;
        margin-top: 0;
        margin-bottom: 15px;
        color: #333;
        border-bottom: 1px solid #ddd;
        padding-bottom: 10px;
    }

    .glossary-sidebar dl {
        margin: 0;
    }

    .glossary-sidebar dt {
        font-weight: 700;
        color: #2c5d2c; /* Darker green for terms */
        margin-top: 15px;
    }

    .glossary-sidebar dd {
        margin-left: 0;
        margin-bottom: 10px;
        font-size: 0.95em;
        color: #555;
    }
    
    /* Responsive styles for mobile screens */
    @media (max-width: 768px) {
        .glossary-sidebar {
            width: 100%;
            margin-top: 30px;
            margin-left: 0;
            border-left: none;
            border-top: 3px solid #4a934a; /* Moves the border to the top */
        }
    }

.wp-block-media-text__content p:last-child {
    margin-bottom: 10px;
}

/* ============================
   Homepage scoped styles
   Requires homepage wrapper class: `ms-home`
   (add via a top-level Group block on the homepage)
   ============================ */

.ms-home {
    color: #e4e7ec; /* Site uses a dark background; default text should be light */
}

.ms-home :where(a) {
    color: #8bb8ff;
}

.ms-home :where(a:hover) {
    color: #b7d2ff;
}

.ms-home :where(h1.wp-block-heading, h2.wp-block-heading, h3.wp-block-heading) {
    color: #ffffff;
}

.ms-home :where(h1.wp-block-heading) {
    font-size: clamp(2.1rem, 3.6vw, 3.25rem);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
}

.ms-home :where(h2.wp-block-heading) {
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 3rem 0 1.25rem;
}

.ms-home :where(h3.wp-block-heading) {
    font-size: 1.25rem;
    font-weight: 650;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.ms-home :where(p) {
    line-height: 1.75;
    margin: 0 0 1.25rem;
    font-size: 1.0625rem;
}

.ms-home :where(strong) {
    font-weight: 650;
}

.ms-home :where(.wp-block-group, .wp-block-columns, .wp-block-media-text, .wp-block-gallery) {
    margin-block: 2.25rem;
}

.ms-home .entry-content :where(h1.wp-block-heading + p) {
    font-size: 1.1875rem;
    line-height: 1.65;
    margin-block: 0 2rem;
}

.ms-home :where(.has-text-align-center) {
    margin-bottom: 1.5rem;
}

/* Card styling for specific Columns blocks.
   Add class `ms-cards` in the editor to the Columns blocks you want styled. */
.ms-home .ms-cards.wp-block-columns {
    gap: 1.75rem;
}

.ms-home .ms-cards > .wp-block-column {
    background: #f7f7f8;
    color: #1f1f1f; /* Prevent theme light-on-dark text from inheriting into light cards */
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.ms-home .ms-cards > .wp-block-column :where(p, li) {
    color: #2b2b2b;
}

.ms-home .ms-cards > .wp-block-column :where(a) {
    color: #0b5bd3;
}

.ms-home .ms-cards > .wp-block-column :where(a:hover) {
    color: #094aac;
}

.ms-home .ms-cards > .wp-block-column :where(strong) {
    color: #151515;
}

.ms-home .ms-cards > .wp-block-column :where(h2.wp-block-heading, h3.wp-block-heading) {
    color: #151515;
}

.ms-home .ms-cards > .wp-block-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.ms-home .ms-cards :where(h2.wp-block-heading) {
    font-size: 2.75rem;
    margin: 0;
    color: #0b5bd3;
}

.ms-home .ms-cards :where(ul.wp-block-list) {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.ms-home :where(.wp-block-button__link, .wpforms-submit) {
    background: #0b5bd3 !important;
    color: #ffffff !important;
    padding: 0.95rem 2.1rem !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

.ms-home :where(.wp-block-button__link:hover, .wpforms-submit:hover) {
    background: #094aac !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(11, 91, 211, 0.25);
}

.ms-home :where(.wp-block-button__link:focus-visible, .wpforms-submit:focus-visible) {
    outline: 3px solid rgba(11, 91, 211, 0.35);
    outline-offset: 3px;
}

.ms-home hr.wp-block-separator {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 4rem auto;
    max-width: 600px;
}

/* Hero block polish (your black top section) */
.ms-home :where(.wp-block-columns.has-black-background-color) {
    padding: clamp(1.25rem, 2.5vw, 2.5rem);
}

.ms-home :where(.wp-block-columns.has-black-background-color img) {
    height: auto;
    max-width: 100%;
}

.ms-home :where(.wp-block-media-text.is-image-fill-element .wp-block-media-text__media img) {
    object-fit: cover;
}

/* "Why work with me" - structured reasons (no cards) */
.ms-home .ms-reasons.wp-block-columns {
    gap: 2rem;
}

.ms-home .ms-reasons > .wp-block-column {
    padding-left: 1rem;
    border-left: 3px solid rgba(11, 91, 211, 0.65);
}

.ms-home .ms-reasons > .wp-block-column:first-child {
    border-left-color: rgba(11, 91, 211, 0.65);
}

.ms-home .ms-reasons > .wp-block-column :where(h3.wp-block-heading) {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.ms-home .ms-reasons > .wp-block-column :where(p) {
    margin-bottom: 0;
    color: #e4e7ec;
}

/* Recent work (grid of items; not an accordion) */
.ms-home .ms-recent-work {
    gap: 1.75rem;
}

.ms-home .ms-recent-work .ms-recent-work-item {
    padding-left: 1rem;
    border-left: 3px solid rgba(11, 91, 211, 0.55);
}

.ms-home .ms-recent-work .ms-recent-work-item :where(h3.wp-block-heading) {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.ms-home .ms-recent-work .ms-recent-work-item :where(p) {
    margin-bottom: 0;
    color: #e4e7ec;
}

/* "The Process" timeline (ordered list) */
.ms-home ol.ms-process {
    list-style: none;
    padding-left: 0;
    margin: 1.75rem 0 0;
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
    justify-content: center;
    counter-reset: ms-step;
}

.ms-home ol.ms-process > li {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #e4e7ec;
    line-height: 1.55;
}

.ms-home ol.ms-process > li::before {
    counter-increment: ms-step;
    content: counter(ms-step);
    position: absolute;
    left: 0.9rem;
    top: 0.95rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #0b5bd3;
    background: rgba(11, 91, 211, 0.16);
    border: 1px solid rgba(11, 91, 211, 0.45);
}

.ms-home ol.ms-process > li::after {
    content: "→";
    position: absolute;
    right: -1.05rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(228, 231, 236, 0.55);
    font-size: 1.25rem;
    pointer-events: none;
}

.ms-home ol.ms-process > li:last-child::after {
    content: none;
}

.ms-home ol.ms-process > li :where(strong) {
    color: #ffffff;
}

.ms-home :where(.wpforms-container) {
    color: #1f1f1f; /* WPForms typically uses a light background */
}

.ms-home :where(.wpforms-container label, .wpforms-container .wpforms-field-description) {
    color: #1f1f1f;
}

.ms-home :where(.wpforms-container input, .wpforms-container textarea, .wpforms-container select) {
    color: #1f1f1f;
}

/* Reduced motion (optional) */
@media (prefers-reduced-motion: reduce) {
    .ms-home * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    .ms-home .ms-cards > .wp-block-column {
        padding: 1.5rem;
    }

    .ms-home .ms-cards.wp-block-columns {
        gap: 1.5rem;
    }

    .ms-home .ms-reasons > .wp-block-column {
        padding-left: 0;
        border-left: none;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .ms-home .ms-reasons > .wp-block-column:first-child {
        border-top: none;
        padding-top: 0;
    }

    .ms-home ol.ms-process {
        flex-direction: column;
        align-items: stretch;
    }

    .ms-home ol.ms-process > li {
        padding: 1rem 1rem 1rem 2.9rem;
    }

    .ms-home ol.ms-process > li::after {
        content: "↓";
        right: 1rem;
        top: auto;
        bottom: -1.05rem;
        transform: none;
    }

    .ms-home ol.ms-process > li:last-child::after {
        content: none;
    }
}

@media (max-width: 480px) {
    .ms-home .ms-cards > .wp-block-column {
        padding: 1.25rem;
    }
}

/* Responsive Content Visibility */

/* Hides content on mobile (screens <= 768px) */
@media screen and (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* Hides content on desktop (screens > 768px) */
@media screen and (min-width: 769px) {
  .hide-on-desktop {
    display: none !important;
  }
}