/*
Theme Name: Hello Elementor Child (Tiara Studio)
Theme URI: https://tiarastudio.ca/
Description: Child theme of Hello Elementor for Tiara Studio. Theme-specific CSS and small PHP tweaks only; site functionality lives in mu-plugins, the design in Elementor. Never edit the parent theme.
Author: Tiara Studio
Template: hello-elementor
Version: 1.0.14
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Theme-specific CSS goes here. Page design belongs in Elementor (site kit / templates). */

/* Light colour scheme only: no dark design exists, so browsers must not auto-darken the site (with the
   <meta name="color-scheme" content="light only"> from functions.php). */
:root {
	color-scheme: only light;
}

/*
 * Tables in body text. Many old posts/pages have tables pasted from Excel/Word with fixed widths (e.g. width:792pt,
 * cells 198pt); on phones they pushed the page sideways (elopement page: 686px overflow). Make them fit the text
 * column, and scroll inside their own box if they still don't fit.
 */
.elementor-widget-text-editor table {
	width: 100% !important;
	max-width: 100%;
	table-layout: auto;
}
.elementor-widget-text-editor table td,
.elementor-widget-text-editor table th {
	width: auto !important;
	height: auto !important;
}
@media (max-width: 767px) {
	.elementor-widget-text-editor table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Homepage hero: the <picture> added around the hero image (functions.php) must fill the box like the <img> did. */
.ts-hero-img picture {
	display: block;
	width: 100%;
	height: 100%;
}

/* Slider dots (testimonials): 24x24 touch targets around the same 10px dot (Elementor's swiper CSS sets the size
   with higher specificity, hence !important). */
.elementor-widget .swiper-pagination-bullet {
	width: 24px !important;
	height: 24px !important;
	border: 7px solid transparent !important;
	background-clip: padding-box !important;
	box-sizing: border-box !important;
	margin: 0 2px !important;
}

/* Sticky header without JavaScript: the whole header sticks, offset by the 44px top bar (phone + social icons), so
   the top bar scrolls away and the main bar stays. Replaces Elementor's jQuery sticky (layout work on load and on
   every scroll). The admin bar offset keeps it below the WordPress toolbar when logged in. */
.elementor-location-header {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - 44px);
	z-index: 100;
}

/* Links inside body text are underlined: their gold (#7C6640) is only 2.1:1 against the body text colour, so colour
   alone doesn't mark them as links (WCAG 1.4.1). Buttons and card links are not affected. */
.elementor-widget-text-editor :is(p, li, td) a:not(.elementor-button) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* =====================================================================================================================
   Mobile menu (Elementor Off-Canvas in the header, tablet + phone; built in scripts/elementor/theme_parts.py).
   All sizes and layout of the panel live here, scoped to .tiara-menu (owner, 2026-11-18): one versioned stylesheet
   rather than per-element CSS in Elementor's regenerated header CSS. !important only where Elementor's generated
   widget CSS sets the same property with higher specificity.
   ================================================================================================================== */

/* Burger and X: icon-only buttons, 48x48 tap areas, label for screen readers only */
.tiara-menu-open .elementor-button,
.tiara-menu-close .elementor-button {
	width: 48px;
	height: 48px;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	color: var(--e-global-color-primary) !important;
	border-radius: 0;
}
.tiara-menu-open .elementor-button:hover, .tiara-menu-open .elementor-button:focus-visible,
.tiara-menu-close .elementor-button:hover, .tiara-menu-close .elementor-button:focus-visible {
	color: var(--e-global-color-accent) !important;
}
.tiara-menu-open .elementor-button-icon, .tiara-menu-close .elementor-button-icon { margin: 0 !important; }
.tiara-menu-open .elementor-button-icon svg { width: 26px; height: 26px; fill: currentColor; }
.tiara-menu-close .elementor-button-icon svg { width: 28px !important; height: 28px !important; fill: currentColor; }
.tiara-menu-open .elementor-button-text, .tiara-menu-close .elementor-button-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.tiara-menu { min-height: 100dvh; }
.tiara-menu-bottom { margin-top: auto; }

@media (max-width: 1024px) {
	/* Top bar: logo mark 48px high, brand text 18px */
	.tiara-menu .elementor-widget-theme-site-logo img { height: 48px !important; width: auto !important; max-width: none !important; }
	.tiara-menu .elementor-widget-heading .elementor-heading-title { font-size: 18px !important; }

	/* Main items: Plus Jakarta Sans 500 22px charcoal, rows >= 64px, sand dividers */
	.tiara-menu .elementor-nav-menu--main .elementor-nav-menu > li { border-bottom: 1px solid var(--e-global-color-tssand); }
	.tiara-menu .elementor-nav-menu--main .elementor-nav-menu > li > a.elementor-item {
		font-family: "Plus Jakarta Sans", sans-serif !important;
		font-weight: 500 !important;
		font-size: 22px !important;
		line-height: 1.25 !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
		min-height: 64px;
		padding: 0 24px !important;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	/* Submenus: accordion inside the panel, closed by default; chevron rotates when open */
	.tiara-menu .elementor-nav-menu--main .sub-menu {
		position: static !important; width: auto !important; min-width: 0 !important; max-width: none !important;
		margin: 0 24px 14px 24px !important; padding: 0; border: 0 !important;
		border-left: 2px solid var(--e-global-color-secondary) !important;
		box-shadow: none !important; background: transparent !important;
	}
	.tiara-menu .elementor-nav-menu--main .sub-menu li { border: 0; }
	/* Sub-items: 18px body colour, rows >= 52px, indented beside the gold line */
	.tiara-menu .elementor-nav-menu--main .sub-menu a.elementor-sub-item {
		font-family: "Plus Jakarta Sans", sans-serif !important;
		font-size: 18px !important;
		font-weight: 400 !important;
		line-height: 1.3 !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
		color: var(--e-global-color-text);
		min-height: 52px;
		padding: 0 0 0 18px !important;
		display: flex;
		align-items: center;
		background: transparent !important;
		border: 0 !important;
	}
	.tiara-menu .elementor-nav-menu--main .sub-menu a.elementor-sub-item:hover { color: var(--e-global-color-accent); }
	.tiara-menu .sub-arrow { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -14px; }
	.tiara-menu .sub-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
	.tiara-menu a.has-submenu.highlighted .sub-arrow svg,
	.tiara-menu a.has-submenu[aria-expanded="true"] .sub-arrow svg { transform: rotate(180deg); }
	/* Current page in gold (WordPress's class: Elementor's scroll-spy strips its own active class on scroll) */
	.tiara-menu .elementor-nav-menu--main li.current-menu-item > a { color: var(--e-global-color-accent) !important; }
	.tiara-menu .elementor-nav-menu--main li:not(.current-menu-item) > a.has-submenu.highlighted { color: var(--e-global-color-primary) !important; }

	/* "Check Your Date": 56px tall, 15px text */
	.tiara-menu-cta .elementor-button {
		min-height: 56px; padding: 0 20px !important; display: flex; align-items: center; justify-content: center;
		font-size: 15px !important;
	}
	/* Tap-to-call: 52px tall, 17px text, sand outline */
	.tiara-menu-call .elementor-button {
		min-height: 52px; padding: 0 20px !important; display: flex; align-items: center; justify-content: center;
		font-size: 17px !important; letter-spacing: .04em !important;
		border: 1px solid var(--e-global-color-tssand) !important; color: var(--e-global-color-primary) !important;
		background: transparent !important;
	}
	.tiara-menu-call .elementor-button:hover { border-color: var(--e-global-color-secondary) !important; }
	.tiara-menu-call .elementor-button-icon svg { width: 17px; height: 17px; fill: currentColor; }
	/* Social icons: 24px icons in 48px tap areas */
	.tiara-menu .elementor-social-icon {
		width: 48px !important; height: 48px !important; padding: 0 !important;
		display: inline-flex !important; align-items: center; justify-content: center;
	}
	.tiara-menu .elementor-social-icon svg { width: 24px !important; height: 24px !important; }
}
