/*
Theme Name: Oikonomos Base Theme
Description: Custom theme based on Hello Elementor.
Author: Rachel Cardy
Author URI: https://www.linkedin.com/in/jaxrachel/
Template: hello-elementor
Version: 2.1.1
Text Domain: owsbase
*/

/* DESIGN CSS for this site. Shared core styles (reset, accessibility, Gravity Forms, utility classes) come from the
   Base Theme Foundation must-use plugin and load before this file, so anything here wins. Everything in this file
   may be changed to match the site's design; the plugin's README lists the classes and variables it provides. */

/* GLOBAL */

html { scroll-behavior: smooth; }

.disclaimer {
	font-size:0.8rem;
	line-height:1.1em;
	font-style:italic;
	margin-bottom:0 !important;
}

.elementor-post__excerpt p:after {
	content:"...";
}

/* CUSTOM LIST STYLES - UPDATE TO MATCH SITE DESIGN */

.customList ul, .customList ol {
    margin: 0 0 1rem -0.5rem;
	padding-left: 2rem;
}

.customList ul {
    list-style: none;
}

.customList li {
    margin-top: 2px;
    margin-bottom: 2px;
}

.customList ul li::before {
  content: "\2013";
  color: var( --e-global-color-accent );
  font-weight: bold;
  display: inline-block;
  width: 1rem;
  margin-left: -1rem;
}

.customList .wp-block-columns {
    margin-bottom: 0.25rem;
}

@media only screen and (min-width:990px) {
    /* Two-column list: add the class to the list itself or to the widget holding it. */
    ul.twoColumnList, .twoColumnList ul {
    -moz-column-count: 2;
    -moz-column-gap: 20px;
    -webkit-column-count: 2;
    -webkit-column-gap: 20px;
    column-count: 2;
    column-gap: 20px;
    margin-top:10px;
}
}

/* BUTTONS IN HORIZONTAL NAVIGATION MENUS - UPDATE TO MATCH SITE DESIGN */

.elementor-nav-menu--layout-horizontal .menuButton .elementor-item {
	padding: 8px 16px !important;
	color: #ffffff !important;
	background-color: var( --e-global-color-primary );
	border-radius: 5px;
	text-transform: uppercase !important;
	font-size: 1.1rem !important;
	font-weight: 500 !important;
}

.elementor-nav-menu--layout-horizontal .menuButton .elementor-item:hover {
	background-color: var( --e-global-color-secondary );
}

.elementor-nav-menu--layout-horizontal .menuButton .elementor-item:before,
.elementor-nav-menu--layout-horizontal .menuButton .elementor-item:after {
	display:none;
	}

.menuIcon i {
	padding: 2px 0 0 8px;
}

/* GRAVITY FORMS OVERRIDES: the plugin styles forms from Site Settings › Theme Style. Only add rules here for what
   Theme Style can't express, e.g. body { --ows-btn-radius: 30px; --ows-confirm-bg: #f6f6f6; } */

/* ACCESSIBILITY: skip links, the #content target and screen-reader text. The Base Theme Foundation plugin prints
   the skip links (2.1.0 has no header.php) and carries the same rules; they stay here so screen-reader text is still
   hidden on a site without the plugin. */

.screen-reader-text, .skipLink {
    border: 0;
    border-radius: 0;
    clip: rect(1px,1px,1px,1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    overflow: hidden;
    padding: 0;
    position: absolute;
    height: 1px;
    width: 1px;
    margin: -1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus, .skipLink:focus  {
    background-color: #efefef !important;
    clip: none !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #101010 !important;
    display: block;
    font-size: 1rem;
    font: message-box;
    text-decoration: none;
    line-height: normal;
    padding: 12px 20px !important;
    left: 5px;
    top: 5px;
    height: auto;
    width: auto;
    min-width: 230px;
    z-index: 100000;
}

.hideElement {
    border: 0;
    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px; 
} 

.hideElement-focusable:active,
.hideElement-focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
} 

/* ==========================================================================
   SITE CSS: Career Choices Unlimited (CCU) - Oikonomos Website Care
   ========================================================================== */

/* Boxed page, as on the old site (Rachel, 2026-11-30: keep the light purple edges on wide screens).
   The edges themselves (Page Background color + fleur-de-lis pattern) are Site Settings > Background.
   Elementor has no boxed-site setting, so this keeps the header, page and footer in one 1330px white
   column (The7's box width; the kit's 1300px containers sit inside it as before). Below 1330px it is
   simply full width. The column and its soft side shadow are one fixed layer behind the page, so the
   shadow runs unbroken past the header/page/footer joins; nothing here creates a stacking context on
   the header, so the sticky menu bar still works. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    width: min(100%, 1330px);
    margin-inline: auto;
    background-color: var(--e-global-color-098e7b4, #fff);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}
body > :is(header, main, footer, .elementor-location-header, .elementor-location-single, .elementor-location-archive, .elementor-location-footer) {
    max-width: 1330px;
    margin-inline: auto;
}

/* A link inside an Icon List item's own text (About > Publications): Elementor styles every link in a list item as
   a flex box, which drops a mid-sentence link onto a line of its own. Keep such links inline. (Elementor's rule is
   ".elementor-widget .elementor-icon-list-item a", so this needs one more class to win.) */
.elementor-widget .elementor-icon-list-item .elementor-icon-list-text a {
    display: inline;
}

/* Pause / Play button for autoplaying carousels (js/ccu-site.js; Elementor has no visible pause
   control and WCAG 2.2.2 needs one). The selector outranks the kit's button style (0,1,1). */
.ccuAutoplay {
    position: relative;
}
.ccuAutoplay button.ccu-carousel-toggle {
    position: absolute;
    left: 12px;
    bottom: 8px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 0;
    padding: 0;
    border: 2px solid var(--e-global-color-098e7b4);
    border-radius: 50%;
    background-color: var(--e-global-color-primary);
    color: var(--e-global-color-098e7b4);
    line-height: 1;
    cursor: pointer;
}
.ccuAutoplay button.ccu-carousel-toggle:hover {
    background-color: var(--e-global-color-477c437);
}
.ccuAutoplay button.ccu-carousel-toggle:focus-visible {
    outline: 2px solid var(--e-global-color-477c437);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--e-global-color-098e7b4);
}
/* Playing: show a pause icon (two bars). */
.ccuAutoplay button.ccu-carousel-toggle[data-state="playing"]::before {
    content: "";
    box-sizing: border-box;
    width: 10px;
    height: 12px;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}
/* Paused: show a play icon (triangle). */
.ccuAutoplay button.ccu-carousel-toggle[data-state="paused"]::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 3px;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent currentColor;
}

/* ---- QA round 1 (2026-11-30). Each rule covers something Elementor has no control for. ---- */

/* One focus ring everywhere: 2px in the text color of whatever has focus, and not animated (Elementor's buttons and
   menu links transition "all", which made the ring grow and shrink over 0.3s). Buttons use the Dark color so the ring
   shows on white around a purple button; on the dark bands (whiteText) the ring is white. */
html :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, transform;
}
html :is(.elementor-button, button, input[type="submit"], input[type="button"]):focus-visible {
    outline-color: var(--e-global-color-accent);
}
html .whiteText :focus-visible,
html .ccuAlertBar :focus-visible {
    outline-color: var(--e-global-color-098e7b4);
}

/* Keyboard focus and in-page jumps (skip link) land below the sticky purple menu bar (sticky on every device since
   2026-12-01). */
html {
    scroll-padding-top: 70px;
}

/* Headings break into even lines instead of leaving one word alone (e.g. "CAREER." on the service-page bands). */
:is(h1, h2, h3).elementor-heading-title {
    text-wrap: balance;
}

/* Below the boxed width the page is plain white: the fixed white column (body::before) only covers the screen, so
   full-page captures and overscroll on phones showed the purple pattern. "body[class]" outranks the kit's body rule. */
@media (max-width: 1329.98px) {
    body[class] {
        background: var(--e-global-color-098e7b4, #fff);
    }
}

/* Security alert bar: a 44px close target with a visible hover/focus state (the icon itself is 18px; the padding is
   pulled back with a negative margin so it stays where it was). The bar stays full width on wide screens: capping its
   box at 1330px left the message inside at screen width (QA round 2). */
.ccuAlertBar .dialog-close-button {
    padding: 13px;
    margin: -13px;
    border-radius: 50%;
}
.ccuAlertBar .dialog-close-button:is(:hover, :focus-visible) {
    background-color: rgba(255, 255, 255, 0.18);
}

/* Hero dots: a dark edge so the white dots show on the pale reflection; inactive ones less faint than Swiper's 20%. */
.ccuHeroSlider .swiper-pagination-bullet {
    opacity: 0.8;
    box-shadow: 0 0 0 1px var(--e-global-color-accent);
}
.ccuHeroSlider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Page numbers (Resources, categories, search): 44px tap targets. */
.elementor-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* Phone menu: Coaching Services' sub-items tinted so they read as a group under it. The menu is centered, so the
   sub-items keep even side padding (ows-foundation indents them with !important, which pushed them off-center). */
nav.elementor-nav-menu--dropdown .sub-menu a.elementor-sub-item {
    padding-left: 20px !important;
    padding-right: 20px !important;
    background-color: var(--e-global-color-c1a7e01);
}

/* ---- QA round 3 (2026-12-01, Rachel's go-ahead on the small fixes). ---- */

/* Testimonial carousel dots: every dot fully visible (Swiper fades inactive ones to 20%), inactive Muted Text
   (5.4:1), the current one Purple and larger, so it differs by more than color (WCAG 1.4.1 / 1.4.11). */
.ccuAutoplay:not(.ccuHeroSlider) .swiper-pagination-bullet {
    opacity: 1;
    background-color: var(--e-global-color-b5d3f02);
}
.ccuAutoplay:not(.ccuHeroSlider) .swiper-pagination-bullet-active {
    background-color: var(--e-global-color-primary);
    transform: scale(1.4);
}

/* Elementor's own focus rules on menu links animate the ring (their transition outranks the site rule above). */
html body .elementor-nav-menu a:focus-visible {
    transition-property: color, background-color;
}

/* 404 search box: Elementor's search form removes the field's outline, so the box shows focus instead. */
.elementor-search-form__container:focus-within {
    outline: 2px solid var(--e-global-color-accent);
    outline-offset: 2px;
}

/* Pay Your Bill: the read-only "Total To Be Charged" is text, not a field; the kit's form-field style made it look
   like one (Gravity Forms' own reset class loses to the kit's field selector). */
.gform_wrapper .gfield input.ginput_total[readonly] { /* (0,4,1): beats the kit field selector (0,3,1) */
    border: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    font-weight: 600;
}

/* Resources sidebar category list (Sitemap widget, class ccuSidebarList): dividers like the services menu, and a hover
   state on its links and the Recent Posts titles (neither widget has a hover color control). */
.ccuSidebarList .elementor-sitemap-list {
    margin: 0;
    padding: 0;
}
.ccuSidebarList .elementor-sitemap-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--e-global-color-e8c2a03);
}
.ccuSidebarList .elementor-sitemap-item a:is(:hover, :focus-visible),
.elementor-location-single aside .elementor-post__title a:is(:hover, :focus-visible),
aside .elementor-post__title a:is(:hover, :focus-visible) {
    color: var(--e-global-color-477c437) !important;
}

/* Main menu: an item whose dropdown is open (Coaching Services, class "highlighted") keeps its white tab, so its text
   must stay Purple too. Elementor has no color control for that state, and its own item color rule is (0,5,0), hence
   !important (Rachel, 2026-12-01: white text on the white tab while the dropdown was open). */
.elementor-location-header .elementor-nav-menu--main .elementor-item.highlighted {
    color: var(--e-global-color-primary) !important;
    fill: var(--e-global-color-primary) !important;
}
