/*
Theme Name: VO Youth Theme
Theme URI: https://sbyoungcatholics.org
Author: Vocations Office Youth and Young Adults
Description: Lightweight, Elementor-friendly theme for Vocations Office Youth and Young Adults. Navy and gold design tokens, fluid type, pill buttons, cards, accessible defaults, and Ultimate Addons for Elementor header/footer support.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: vo-youth
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--vyg-night: #071426;
	--vyg-navy: #0b2140;
	--vyg-navy-2: #0a1a30;
	--vyg-blue: #153c70;
	--vyg-gold: #f5bf00;
	--vyg-gold-soft: #ffda59;
	--vyg-paper: #f4f7fb;
	--vyg-ink: #0b2140;
	--vyg-text: #1c2b3f;
	--vyg-muted: #b9c6d9;
	--vyg-muted-ink: #52627a;
	--vyg-line: #e5e7eb;
	--vyg-radius: 19px;
	--vyg-radius-sm: 12px;
	--vyg-radius-pill: 99px;
	--vyg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--vyg-wrap: 1160px;
	--vyg-shadow: 0 18px 40px rgba(7, 20, 38, .12);

	/* Fluid type scale (used by the theme's own templates and available to custom CSS). */
	--vyg-step-0: clamp(16px, .95rem + .2vw, 18px);
	--vyg-step-1: clamp(20px, 1.1rem + .6vw, 26px);
	--vyg-step-2: clamp(28px, 1.4rem + 1.6vw, 44px);
	--vyg-step-3: clamp(36px, 1.6rem + 3.2vw, 68px);

	/* Compatibility with colour variables already used in site CSS. */
	--vo-navy: #013882;
	--vo-gold: #ffc500;
	--vo-line: #e5e7eb;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: var(--vyg-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--vyg-text);
	background: #fff;
	overflow-wrap: break-word;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
h1, h2, h3, h4, h5, h6 { font-family: var(--vyg-font); margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--vyg-blue); text-underline-offset: 3px; text-decoration-thickness: .08em; }
a:hover { color: var(--vyg-navy); }
::selection { background: var(--vyg-gold); color: var(--vyg-navy); }

/* Accessible focus for every interactive element (visible, high contrast). */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--vyg-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

.vyg-skip {
	position: absolute; left: -999px; top: 8px; z-index: 9999;
	background: var(--vyg-gold); color: var(--vyg-navy); padding: 10px 16px; border-radius: 8px; font-weight: 800;
}
.vyg-skip:focus { left: 8px; }

/* ==========================================================================
   3. Layout (the theme's own templates)
   ========================================================================== */
.vyg-main { min-height: 40vh; }
.vyg-wrap {
	width: min(var(--vyg-wrap), calc(100% - 44px)); margin: 0 auto; padding: clamp(40px, 6vw, 88px) 0;
	font-size: var(--vyg-step-0); line-height: 1.7; color: var(--vyg-text);
}
.vyg-wrap--narrow { width: min(760px, calc(100% - 44px)); }
.vyg-wrap h1, .vyg-wrap h2, .vyg-wrap h3, .vyg-wrap h4, .vyg-wrap h5, .vyg-wrap h6 {
	font-weight: 800; line-height: 1.12; letter-spacing: -.03em; color: var(--vyg-navy); margin: 0 0 .5em;
}
.vyg-wrap h1 { font-size: var(--vyg-step-3); letter-spacing: -.05em; }
.vyg-wrap h2 { font-size: var(--vyg-step-2); }
.vyg-wrap h3 { font-size: var(--vyg-step-1); letter-spacing: -.02em; }
.vyg-page-title { margin-bottom: .6em; }
.vyg-kicker, .vyg-card__meta {
	font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--vyg-blue); margin: 0 0 10px;
}
.vyg-content > * + * { margin-top: 1.1em; }
.vyg-content img { border-radius: 14px; display: block; }
.vyg-entry__img { margin: 0 0 28px; }
.vyg-entry__img img { width: 100%; border-radius: var(--vyg-radius); display: block; }

/* Elementor pages run edge to edge with their own spacing. */
.vyg-elementor-page .vyg-main { min-height: 0; }

/* ==========================================================================
   4. Buttons (WordPress, forms, Elementor)
   ========================================================================== */
.wp-block-button__link, .button, button[type="submit"], input[type="submit"], .elementor-button, .tribe-common-c-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 48px; padding: 12px 24px;
	border: 0; border-radius: var(--vyg-radius-pill);
	background: var(--vyg-gold); color: #102f5b;
	font-family: var(--vyg-font); font-weight: 800; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: transform .24s, box-shadow .24s, background .24s;
}
.wp-block-button__link:hover, .button:hover, button[type="submit"]:hover, input[type="submit"]:hover {
	transform: translateY(-3px); box-shadow: 0 10px 28px rgba(7, 20, 38, .25); color: #102f5b;
}
.is-style-outline .wp-block-button__link, .vyg-btn--outline {
	background: transparent; color: var(--vyg-navy); border: 1px solid var(--vyg-navy);
}
.vyg-wrap a.button, .vyg-wrap a.button:hover { color: #102f5b !important; text-decoration: none; }
.vyg-link { font-size: 14px; font-weight: 800; color: var(--vyg-blue); text-decoration: none; }
.vyg-link:hover { color: var(--vyg-navy); text-decoration: underline; }

/* ==========================================================================
   5. Forms
   ========================================================================== */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="number"], select, textarea {
	width: 100%; padding: 12px 14px; font: inherit; color: var(--vyg-ink);
	background: #fff; border: 1px solid #cbd5e1; border-radius: var(--vyg-radius-sm);
}
input:focus, select:focus, textarea:focus { border-color: var(--vyg-gold); }

/* WPForms keeps its established look: square navy button, white text. */
.wpforms-container .wpforms-submit, .wpforms-container button[type="submit"] {
	display: inline-block; min-height: 0; border-radius: 0; font-size: 20px; font-weight: 400; letter-spacing: 2px; padding: 14px 20px; color: #fff !important;
}
.wpforms-container .wpforms-submit:hover { transform: none; box-shadow: none; color: #fff !important; }

.search-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-form label { flex: 1 1 220px; }
.search-form .search-submit { min-height: 44px !important; padding: 8px 22px !important; font-size: 14px !important; margin: 0; color: #102f5b !important; background: var(--vyg-gold) !important; border-radius: 99px !important; letter-spacing: 0 !important; }

/* ==========================================================================
   6. Cards / post grid
   ========================================================================== */
.vyg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.vyg-card {
	display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--vyg-line); border-radius: var(--vyg-radius); background: #fff;
	transition: transform .28s, box-shadow .28s;
}
.vyg-card:hover { transform: translateY(-5px); box-shadow: var(--vyg-shadow); }
.vyg-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.vyg-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.vyg-card__title { font-size: 21px; letter-spacing: -.02em; margin: 0 0 6px; }
.vyg-card__title a { color: var(--vyg-navy); text-decoration: none; }
.vyg-card__text { font-size: 15px; color: var(--vyg-muted-ink); flex: 1; }
.vyg-pagination { margin-top: 36px; }
.vyg-pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.vyg-pagination a, .vyg-pagination .current { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--vyg-line); text-decoration: none; font-weight: 700; }
.vyg-pagination .current { background: var(--vyg-gold); border-color: var(--vyg-gold); color: var(--vyg-navy); }

/* ==========================================================================
   7. Fallback header / footer (only if the Elementor ones are switched off)
   ========================================================================== */
.vyg-header { background: #fff; border-bottom: 1px solid var(--vyg-line); }
.vyg-header__inner, .vyg-footer__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	width: min(var(--vyg-wrap), calc(100% - 44px)); margin: 0 auto; padding: 16px 0;
}
.vyg-brand { font-weight: 800; color: var(--vyg-navy); text-decoration: none; }
.vyg-brand img { max-height: 60px; width: auto; }
.vyg-nav ul, .vyg-footer ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.vyg-nav a, .vyg-footer a { color: var(--vyg-navy); font-weight: 700; text-decoration: none; }
.vyg-nav a:hover, .vyg-footer a:hover { text-decoration: underline; text-decoration-color: var(--vyg-gold); }
.vyg-footer { background: var(--vyg-night); color: var(--vyg-muted); }
.vyg-footer a { color: #fff; }

/* ==========================================================================
   8. Elementor header refinements (logo + emblem, responsive menu)
   ========================================================================== */
@media only screen and (max-width: 767px) {
	html, body { overflow-x: clip; }
}
.elementor-element-47eac5c .elementor-widget-container,.elementor-element-77fc209 .elementor-widget-container{display:flex!important;align-items:center!important;gap:clamp(8px,1vw,14px);min-width:0}
.elementor-element-47eac5c .elementor-widget-container::before,.elementor-element-77fc209 .elementor-widget-container::before{content:"";display:block;flex:0 0 clamp(40px,5.5vw,70px);width:clamp(40px,5.5vw,70px);height:clamp(48px,5.8vw,76px);background:url("https://sbyoungcatholics.org/wp-content/uploads/2026/10/diocese-emblem-header.png") center/contain no-repeat}
.elementor-element-47eac5c .elementor-widget-container a,.elementor-element-77fc209 .elementor-widget-container a{display:flex!important;flex:1 1 auto;align-items:center;min-width:0;max-width:100%}
.elementor-element-47eac5c img,.elementor-element-77fc209 img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:76px!important;object-fit:contain;object-position:left center}
@media(min-width:768px){
.elementor-element-4c266f2 .elementor-container{display:flex;align-items:center}
.elementor-element-dbc1983{display:flex;align-items:center;justify-content:flex-end}
}
@media(max-width:767px){
.elementor-element-1997722{position:relative;z-index:1000;padding:8px 14px!important;overflow:visible!important}
.elementor-element-1997722 .elementor-container{display:flex;align-items:center;justify-content:space-between;min-height:76px}
.elementor-element-ff50410{padding:0!important}
.elementor-element-c0de2026{display:flex;align-items:center;justify-content:flex-end;padding:0!important}
.elementor-element-77fc209 img{max-height:58px!important}
.elementor-element-f4dbbca{position:relative;z-index:1001;width:100%}
.elementor-element-f4dbbca .hfe-layout-expandible{position:relative;align-items:flex-end}
.elementor-element-f4dbbca .hfe-nav-menu__toggle{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin-left:auto;border:1px solid #f2e7bc;border-radius:12px;background:#fff8e4;color:var(--vo-navy)!important}
.elementor-element-f4dbbca .hfe-nav-menu-icon,.elementor-element-f4dbbca .hfe-nav-menu-icon i{color:var(--vo-navy)!important;font-size:27px;line-height:1}
.elementor-element-f4dbbca .hfe-nav-menu__toggle[aria-expanded="true"]+nav.hfe-nav-menu__layout-expandible,.elementor-element-f4dbbca .hfe-active-menu+nav.hfe-nav-menu__layout-expandible,.elementor-element-f4dbbca .hfe-layout-expandible.hfe-active-menu nav.hfe-nav-menu__layout-expandible{position:absolute!important;top:100%!important;right:0!important;left:auto!important;width:min(92vw,360px)!important;max-height:calc(100vh - 120px);height:auto!important;overflow-y:auto!important;visibility:visible!important;opacity:1!important;z-index:10050!important;padding:8px 0;border:1px solid var(--vo-line);border-radius:14px;background:#fff!important;box-shadow:0 14px 36px rgba(18,48,85,.18)}
.elementor-element-f4dbbca .hfe-nav-menu__layout-expandible .hfe-nav-menu{display:flex!important;flex-direction:column;width:100%;padding:0 8px}
.elementor-element-f4dbbca .hfe-nav-menu__layout-expandible a.hfe-menu-item{display:flex;align-items:center;min-height:48px;padding:12px 14px;color:#123055!important;font-size:16px;line-height:1.3;background:#fff;border-radius:8px}
.elementor-element-f4dbbca .hfe-nav-menu__layout-expandible a.hfe-menu-item:hover,.elementor-element-f4dbbca .hfe-nav-menu__layout-expandible a.hfe-menu-item:focus{color:var(--vo-navy)!important;background:#fff7e0}
.elementor-element-f4dbbca .hfe-nav-menu__layout-expandible a.hfe-sub-menu-item{display:flex;align-items:center;min-height:44px;padding:10px 14px 10px 28px;color:#123055!important;font-size:15px;line-height:1.3;background:#fff}
}

/* ==========================================================================
   9. Motion + WordPress core
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: #64748b; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
