/* ------------------------------------------------------------------
   Body Stress Release – public site styles
   Recreates the look of the original Roseta/Elementor WordPress theme.
   ------------------------------------------------------------------ */
:root {
    --accent: #006837;
    --accent-dark: #006232;
    --accent-light: #e6f2ec;
    --headings: #162521;
    --text: #565656;
    --muted: #8a8a8a;
    --bg: #ffffff;
    --bg-alt: #f2f2f2;
    --border: #e9e9e9;
    --footer-bg: #162521;
    --font-body: "System Fonts", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-heading: "Oswald", "Segoe UI", sans-serif;
    --font-widget: "Roboto", "Segoe UI", sans-serif;
    --container: 1240px;
    --sidebar: 340px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font-body); font-size: 17px; line-height: 1.85; color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--headings); line-height: 1.3; margin: 1.4em 0 .5em; }
h1 { font-size: 2.2em; } h2 { font-size: 1.85em; } h3 { font-size: 1.5em; } h4 { font-size: 1.25em; } h5 { font-size: 1.1em; } h6 { font-size: 1em; }
p { margin: 0 0 1.2em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 16px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; font-family: var(--font-heading); font-weight: 500; font-size: .85em; letter-spacing: 1.5px; text-transform: uppercase; padding: 10px 26px; border: 2px solid var(--accent); border-radius: 2px; transition: all .2s; cursor: pointer; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------------- Header ---------------- */
.site-header { background: #fff; }
.site-header-top .container { position: relative; display: flex; justify-content: center; align-items: center; padding-top: 22px; padding-bottom: 18px; min-height: 120px; }
.site-logo img { display: block; width: 100%; max-width: 480px; height: auto; }
.socials { list-style: none; margin: 0; padding: 0; position: absolute; left: 24px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; }
.socials a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent); }
.socials a:hover { background: var(--accent-light); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

.site-nav { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; position: relative; z-index: 50; }
.site-nav .container { display: flex; align-items: center; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; width: 100%; }
.menu > li { position: relative; }
.menu > li > a { display: block; padding: 0 20px; line-height: 70px; font-size: .8em; font-weight: 400; text-transform: uppercase; letter-spacing: .5px; color: #333; white-space: nowrap; }
.menu > li:first-child > a { padding-left: 0; }
.menu > li > a:hover, .menu > li.current > a { color: var(--accent); text-decoration: none; }
.menu > li.current > a { font-weight: 500; }
.menu li.has-children > a { padding-right: 30px; }
.submenu-toggle { position: absolute; right: 8px; top: 0; height: 70px; width: 22px; background: none; border: 0; cursor: pointer; padding: 0; }
.submenu-toggle::after { content: ""; display: block; width: 6px; height: 6px; border-right: 1.5px solid #888; border-bottom: 1.5px solid #888; transform: rotate(45deg); margin: -3px auto 0; }
.submenu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; z-index: 60; }
.menu > li:first-child .submenu { left: -20px; }
.submenu li a { display: block; padding: 8px 22px; font-size: .78em; text-transform: uppercase; color: #333; line-height: 1.6; }
.submenu li a:hover, .submenu li.current a { color: var(--accent); background: var(--bg-alt); text-decoration: none; }
.menu > li.has-children:hover > .submenu, .menu > li.has-children:focus-within > .submenu, .menu > li.open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-search { margin-left: auto; }
.menu-search form { display: flex; align-items: center; height: 70px; }
.menu-search input { width: 0; opacity: 0; padding: 6px 0; border: 0; border-bottom: 1px solid var(--border); font: inherit; font-size: .85em; transition: all .25s; outline: none; }
.menu-search:hover input, .menu-search:focus-within input, .menu-search.open input { width: 170px; opacity: 1; padding: 6px 8px; }
.menu-search button { background: none; border: 0; padding: 0 0 0 10px; cursor: pointer; color: #333; display: inline-flex; }
.menu-search button:hover { color: var(--accent); }
.menu-search svg { width: 18px; height: 18px; fill: currentColor; }
.nav-toggle { display: none; }

/* ---------------- Hero + banners ---------------- */
.hero { height: 520px; background-size: cover; background-position: center right; background-repeat: no-repeat; }
.banner { position: relative; height: 350px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; background-color: var(--headings); }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .18); }
.banner-plain { height: 220px; background: linear-gradient(135deg, var(--accent-dark), #0a8a4a); }
.banner-inner { position: relative; text-align: center; padding: 0 24px; max-width: 900px; }
.banner-title { font-family: var(--font-heading); font-weight: 600; font-size: 2.3em; text-transform: uppercase; color: #fff; margin: 0; line-height: 1.3; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.banner-meta { color: #fff; margin: .6em 0 0; font-size: .95em; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.banner-meta .sep { margin: 0 8px; opacity: .8; }

/* ---------------- Layout ---------------- */
.site-main { min-height: 40vh; }
.two-columns { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar); gap: 48px; padding-top: 48px; padding-bottom: 64px; }
.main { min-width: 0; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h1:first-child, .entry-content h2:first-child { margin-top: .2em; }
.entry-content img { display: block; max-width: 100%; height: auto; margin: 1.5em auto; border-radius: 2px; }
.entry-content iframe { max-width: 100%; border: 0; }
.entry-content iframe[src*="youtube"] { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.entry-content iframe[src*="maps.google"] { width: 100%; height: 420px; margin: 1.5em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .3em; }
.entry-content blockquote { margin: 1.5em 0; padding: .5em 1.5em; border-left: 4px solid var(--accent); background: var(--bg-alt); font-style: italic; }
.entry-content table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
.entry-content td, .entry-content th { border: 1px solid var(--border); padding: .5em .8em; }
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.entry-footer { margin-top: 2.5em; }

/* Sidebar widgets */
.sidebar .widget { border: 1px solid var(--border); padding: 28px 30px; margin-bottom: 28px; background: #fff; }
.widget-title { font-family: var(--font-widget); font-size: 1em; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--headings); margin: 0 0 1em; }
.widget p { margin-bottom: 1em; }
.widget p:last-child { margin-bottom: 0; }
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { padding: 8px 0; border-bottom: 1px dotted #ccc; line-height: 1.6; }
.widget-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget-list a { color: var(--text); }
.widget-list a:hover { color: var(--accent); }

/* ---------------- Home page ---------------- */
.home-intro { padding: 56px 0 8px; }
.home-intro .entry-content { max-width: 1000px; }
.home-intro h1 { margin-top: 0; }
.home-intro h2 { font-size: 1.55em; color: var(--headings); }
.home-videos { padding: 24px 0 40px; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-cards { padding: 40px 0 56px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.icon-box { text-align: center; padding: 0 12px; }
.icon-box-icon { display: inline-flex; width: 74px; height: 74px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-light); color: var(--accent); margin-bottom: 8px; transition: transform .3s; }
.icon-box:hover .icon-box-icon { transform: translateY(-4px); }
.icon-box-icon svg { width: 36px; height: 36px; fill: currentColor; }
.icon-box h3 { font-size: 1.35em; margin: .4em 0 .5em; }
.icon-box h3 a { color: var(--headings); }
.icon-box h3 a:hover { color: var(--accent); text-decoration: none; }
.icon-box p { min-height: 4.5em; }
.home-band { background: var(--accent-dark); color: #fff; padding: 36px 0; text-align: center; }
.home-band h2 { color: #fff; margin: 0; font-size: 2.2em; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

/* ---------------- Article list ---------------- */
.list-intro { margin-bottom: 2em; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 36px; }
.article-card { display: flex; flex-direction: column; background: #fff; }
.article-card-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.article-card:hover .article-card-image img { transform: scale(1.04); }
.article-card-body { padding: 18px 4px 0; }
.article-card-title { font-size: 1.45em; margin: 0 0 .4em; }
.article-card-title a { color: var(--headings); }
.article-card-title a:hover { color: var(--accent); text-decoration: none; }
.entry-meta { font-size: .88em; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 0 0 .8em; }
.entry-meta svg { width: 15px; height: 15px; fill: currentColor; }
.article-card-summary { margin-bottom: .8em; }
.read-more { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1.5px; font-size: .82em; font-weight: 500; }
.read-more::after { content: " →"; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 48px; justify-content: center; }
.page-numbers { display: inline-block; min-width: 40px; padding: 6px 12px; text-align: center; border: 1px solid var(--border); color: var(--text); font-size: .9em; }
.page-numbers:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------- Search ---------------- */
.search-form { display: flex; gap: 12px; margin-bottom: 2em; }
.search-form input { flex: 1; font: inherit; padding: 10px 14px; border: 1px solid #ccc; border-radius: 2px; }
.search-form input:focus { outline: 2px solid var(--accent-light); border-color: var(--accent); }
.search-results { list-style: none; margin: 0 0 2em; padding: 0; }
.search-results li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.search-results li > a { font-family: var(--font-heading); font-size: 1.2em; font-weight: 500; }
.search-results p { margin: .3em 0 0; font-size: .95em; }
.search-results .entry-meta { display: inline; margin-left: 10px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--footer-bg); color: #b8c2bd; padding: 40px 0 36px; text-align: center; font-size: .9em; position: relative; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-bottom: 14px; }
.footer-menu a { color: #fff; text-transform: uppercase; font-size: .85em; letter-spacing: .5px; }
.footer-menu a:hover { color: #7fd1a6; text-decoration: none; }
.footer-menu .sep { color: #5c6a64; }
.copyright { margin: 0; }
.admin-link { margin: 8px 0 0; }
.admin-link a { color: #7fd1a6; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transition: all .3s; z-index: 90; }
.to-top.visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--accent-dark); color: #fff; }
.to-top svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
    :root { --sidebar: 300px; }
    .menu > li > a { padding: 0 14px; }
}
@media (max-width: 960px) {
    .two-columns { grid-template-columns: 1fr; gap: 40px; }
    .card-grid { grid-template-columns: 1fr; gap: 32px; }
    .video-grid { grid-template-columns: 1fr; }
    .hero { height: 380px; }
    .banner { height: 280px; }
    .banner-title { font-size: 1.8em; }
    .site-logo img { max-width: 360px; }
    .socials { position: static; transform: none; order: 2; margin-top: 8px; }
    .site-header-top .container { flex-direction: column; }

    .site-nav .container { flex-wrap: wrap; padding: 0; }
    .nav-toggle { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 14px 24px; cursor: pointer; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1px; font-size: .9em; color: #333; width: 100%; }
    .nav-toggle-bar { display: block; width: 22px; height: 2px; background: #333; position: relative; }
    .nav-toggle-bar + .nav-toggle-bar { display: none; }
    .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #333; }
    .nav-toggle-bar::before { top: -7px; } .nav-toggle-bar::after { top: 7px; }
    .menu { display: none; flex-direction: column; align-items: stretch; width: 100%; border-top: 1px solid var(--border); padding-bottom: 8px; }
    .menu.open { display: flex; }
    .menu > li > a { line-height: 48px; padding: 0 24px !important; }
    .submenu-toggle { height: 48px; right: 16px; width: 40px; }
    .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-top: 0; background: var(--bg-alt); display: none; padding: 4px 0; }
    .menu > li.open > .submenu { display: block; }
    .menu > li.has-children:hover > .submenu { display: none; }
    .menu > li.has-children.open:hover > .submenu { display: block; }
    .submenu li a { padding-left: 44px; }
    .menu-search { margin: 8px 24px 0; }
    .menu-search form { height: auto; }
    .menu-search input, .menu-search:hover input { width: 100%; opacity: 1; padding: 8px; border: 1px solid var(--border); }
}
@media (max-width: 600px) {
    html { font-size: 16px; }
    .article-grid { grid-template-columns: 1fr; }
    .hero { height: 260px; }
    .banner { height: 220px; }
    .banner-title { font-size: 1.5em; }
    .home-band h2 { font-size: 1.6em; }
    .sidebar .widget { padding: 22px; }
    .container { padding: 0 18px; }
    .two-columns { padding-top: 32px; }
}
@media print {
    .site-nav, .socials, .site-footer, .sidebar, .to-top { display: none !important; }
    .two-columns { display: block; }
}
