/*
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.4.7
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;
}

/* 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;
}

/*
 * Privacy policy pages (/privacy-policy/, /politique-de-confidentialite/; scripts/elementor/legal.py). The policy
 * text is one text-editor widget with the class ts-legal: section headings, and tables with visible borders. On
 * phones the tables scroll sideways inside their own box (rule above), so the page never overflows.
 */
.ts-legal h2 {
	margin: 1.8em 0 .5em;
	font-family: var(--e-global-typography-primary-font-family), serif;
	font-size: clamp(26px, 3vw, 32px);
	font-weight: 500;
	line-height: 1.2;
	color: var(--e-global-color-primary);
}
.ts-legal table {
	margin: 1em 0 1.6em;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.55;
}
.ts-legal :is(th, td) {
	padding: 10px 12px;
	border: 1px solid #CFC3B0;
	vertical-align: top;
	text-align: left;
}
.ts-legal th {
	background: var(--e-global-color-tsbeige, #F1ECE4);
	color: var(--e-global-color-primary);
	font-weight: 600;
}
@media (max-width: 767px) {
	.ts-legal table td,
	.ts-legal table th {
		min-width: 150px;
	}
}

/* Footer bottom bar: privacy links + "Cookie settings / Paramètres des témoins" (scripts/elementor/theme_parts.py). */
.ts-footer-legal p {
	margin: 0;
}
.ts-footer-legal a {
	display: inline-block;
	padding: 12px 2px;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(217, 211, 200, .45);
}
.ts-footer-legal a:is(:hover, :focus-visible) {
	color: var(--e-global-color-tsgoldlt);
	text-decoration-color: currentColor;
}
.ts-footer-legal .sep {
	margin: 0 8px;
	color: #6B655C;
}

/* Under the inquiry forms (contact page, popup): how the details are used, with links to both policy pages. */
.ts-form-notice p {
	margin: 0;
}
.ts-form-notice a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	display: inline-block;
	padding: 4px 0;
}
@media (max-width: 767px) {
	/* Phones: "Cookie settings" on its own line, so no separator dangles at a line end. */
	.ts-footer-legal .sep:nth-of-type(2) {
		display: none;
	}
	.ts-footer-legal a[href$="#cookie-settings"] {
		display: block;
	}
}

/* =====================================================================================================================
   FAQs in Journal posts (owner review 2026-11-20). Old posts carry the old theme's per-widget accordion colours (white
   question and answer text, made for a dark background), unreadable on ivory. Same look as the service-page FAQs
   (scripts/elementor/services.py ACC_CSS): serif questions in ink, gold icon, answers in body colour, thin sand rules.
   !important because Elementor's per-element CSS for each old accordion sets these with higher specificity.
   ================================================================================================================== */
/* FAQ section heading (scripts/faq-headings.php gives it the class and removes its old white/Prata/uppercase settings):
   the site's section heading style. */
.elementor-widget-text-editor h2.ts-faq-title { margin: 1.6em 0 .6em !important; }
.ts-faq-head .elementor-heading-title,
.elementor-widget-text-editor h2.ts-faq-title {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-size: clamp(32px, 3.6vw, 44px) !important;
	font-weight: 500 !important;
	line-height: 1.15 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #1F1E1C !important;
	text-align: left;
}
/* One 1px sand line between questions. Old posts often have one accordion widget per question, each with its own top
   and bottom border and the container's gap between them (double lines with a gap): no gap between consecutive
   accordions, and only the very first item of a run draws a top line. */
.single-post .e-n-accordion { gap: 0 !important; }
.single-post .e-n-accordion .e-n-accordion-item {
	border: 0 !important;
	border-bottom: 1px solid #E3DACD !important;
	border-radius: 0 !important;
	margin: 0 !important;
}
.single-post .e-n-accordion .e-n-accordion-item:first-child {
	border-top: 1px solid #E3DACD !important;
}
.single-post .elementor-widget-n-accordion + .elementor-widget-n-accordion {
	margin-top: calc(-1 * var(--row-gap, var(--gap, 20px))) !important;
}
.single-post .elementor-widget-n-accordion + .elementor-widget-n-accordion .e-n-accordion-item:first-child {
	border-top: 0 !important;
}
.single-post .e-n-accordion .e-n-accordion-item-title {
	padding: 20px 4px !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	gap: 20px;
}
.single-post .e-n-accordion .e-n-accordion-item-title-text {
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-size: clamp(21px, 2vw, 24px) !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	color: #1F1E1C !important;
}
.single-post .e-n-accordion .e-n-accordion-item-title:hover .e-n-accordion-item-title-text,
.single-post .e-n-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title .e-n-accordion-item-title-text {
	color: #7C6640 !important;
}
/* Arrow gold, closed and open */
.single-post .e-n-accordion .e-n-accordion-item-title-icon,
.single-post .e-n-accordion .e-n-accordion-item-title-icon * {
	fill: #A88F5C !important;
	color: #A88F5C !important;
}
.single-post .e-n-accordion .e-n-accordion-item > [role="region"] {
	background: transparent !important;
	border: 0 !important;
	padding: 0 4px 22px !important;
}
.single-post .e-n-accordion [role="region"] :is(p, li, span, div, strong, em, h3, h4, h5) {
	color: #3B3936 !important;
	background: transparent !important;
}
.single-post .e-n-accordion [role="region"] a {
	color: #7C6640 !important;
}

/* =====================================================================================================================
   Homepage hero, option B, and the trust card T4 (owner review 2026-11-20; scripts/elementor/home.py hero(), trust()).
   Hero: headline + two buttons at the bottom left over a soft gradient, with room at the bottom for the card that
   overlaps the photo by ~62px (40px on phones). Card: 4 cells (3 numbers + "As seen in" on beige); on phones the
   3 numbers share one row and "As seen in" goes underneath.
   ================================================================================================================== */
.ts-home-hero.e-con { position: relative; overflow: hidden; --padding-bottom: 0; padding-bottom: 0; }
.ts-home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(15, 14, 13, 0) 45%, rgba(15, 14, 13, .55) 100%),
		linear-gradient(90deg, rgba(15, 14, 13, .45) 0%, rgba(15, 14, 13, 0) 55%);
}
.ts-home-txt.e-con {
	position: relative;
	z-index: 2;
	width: 100%;
	--padding-top: 0; --padding-right: var(--ts-hdr-pad-x, 32px); --padding-bottom: 0; --padding-left: var(--ts-hdr-pad-x, 32px);
	padding: 0 var(--ts-hdr-pad-x, 32px) clamp(118px, 10vw, 132px);
	align-items: flex-start;
}
.ts-home-txt .ts-home-h1 { max-width: 620px !important; width: 100%; }
.ts-home-h1 .elementor-heading-title {
	margin: 0 0 26px;
	font: 500 clamp(40px, 4.6vw, 64px)/1.05 "Cormorant Garamond", Georgia, serif;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.ts-home-btns.e-con { --gap: 14px; gap: 14px; }

.ts-trust-wrap.e-con { position: relative; z-index: 3; background: var(--e-global-color-tsivory, #FAF8F5); padding: 0 16px; display: flow-root; }
.ts-trust.e-con {
	--display: grid;
	display: grid;
	grid-template-columns: repeat(3, 1fr) 1.35fr;
	gap: 0;
	max-width: 1100px;
	width: 100%;
	margin: -62px auto 0;
	padding: 0;
	background: #fff;
	box-shadow: 0 22px 50px rgba(31, 30, 28, .14);
}
.ts-trust-cell.e-con { padding: 30px 28px; text-align: center; justify-content: center; align-items: center; gap: 0; }
.ts-trust-cell + .ts-trust-cell { border-left: 1px solid #E3DACD; }
.ts-trust-num, .ts-trust-num p { margin: 0 0 6px; font: 500 40px/1.1 "Cormorant Garamond", Georgia, serif !important; color: #1F1E1C; }
.ts-trust-cap, .ts-trust-cap p {
	margin: 0;
	font: 600 12px/1.6 "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif !important;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #686158;
}
.ts-stars { color: #A88F5C; letter-spacing: .12em; font-size: 14px; }
.ts-trust-seen.e-con { background: #F1ECE4; gap: 12px; }
.ts-trust-seenlab, .ts-trust-seenlab p {
	margin: 0;
	font: 600 12px/1.4 "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif !important;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #7C6640;
}
.ts-trust-logos p { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; margin: 0; }
/* Logos muted and in greyscale, full on hover/focus */
.ts-lg { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none !important; transition: opacity .2s, filter .2s, color .2s; }
.ts-lg-mw img { display: block; height: 30px; width: auto; filter: grayscale(1); opacity: .55; transition: opacity .2s; }
.ts-lg-mw:is(:hover, :focus-visible) img { opacity: 1; filter: none; }
/* WeddingWire: her single-colour logo, inline (currentColor). Same muted tone as MyWed (ink at 55%), ink on hover/focus;
   17px tall, a flat wordmark matching the visual weight of MyWed's 30px mark + small text. */
.ts-lg-ww { color: #1F1E1C !important; opacity: .55; }
.ts-lg-ww:is(:hover, :focus-visible) { opacity: 1; }
.ts-lg-ww svg { display: block; height: 17px; width: auto; }

@media (max-width: 767px) {
	.ts-home-txt.e-con { padding-bottom: 88px; }
	.ts-home-btns .elementor-widget-button, .ts-home-btns .elementor-button { width: 100%; }
	.ts-home-btns.e-con { width: 100%; }
	.ts-trust.e-con { grid-template-columns: repeat(3, 1fr); margin-top: -40px; }
	.ts-trust-cell.e-con { padding: 22px 8px; }
	.ts-trust-num, .ts-trust-num p { font-size: 30px !important; }
	.ts-trust-cap, .ts-trust-cap p { font-size: 11px !important; letter-spacing: .14em; }
	.ts-trust-seen.e-con { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid #E3DACD; padding: 18px 8px; }
}

/* Service-page hero with the text bottom-left instead of centred (services.py LEFT_HEROES; engagement page, owner
   review 2026-11-20): the couple stands right of centre, so the text keeps clear of their faces. Same alignment,
   title size and left gradient as the homepage hero. !important: the hero's own Elementor settings centre it. */
.ts-hero-left.e-con::after {
	background:
		linear-gradient(180deg, rgba(20, 18, 16, .2) 0%, rgba(20, 18, 16, .1) 45%, rgba(20, 18, 16, .65) 100%),
		linear-gradient(90deg, rgba(15, 14, 13, .55) 0%, rgba(15, 14, 13, 0) 60%) !important;
}
.ts-hero-left > .e-con {
	max-width: 660px !important;
	margin: 0 auto 0 var(--ts-hdr-pad-x, 32px) !important;
	--padding-left: 0; --padding-right: 20px;
	padding-left: 0 !important;
	padding-right: 20px !important;
	align-items: flex-start !important;
}
.ts-hero-left :is(.elementor-heading-title, .elementor-widget-text-editor) { text-align: left !important; }
.ts-hero-left h1.elementor-heading-title { font-size: clamp(40px, 4.6vw, 64px) !important; line-height: 1.05 !important; }
.ts-hero-left .elementor-widget-text-editor p { justify-content: flex-start !important; }
.ts-hero-left .e-con.e-flex:has(> .elementor-widget-button) { justify-content: flex-start !important; }
@media (max-width: 767px) {
	/* Phones: full width minus the gutters, and a taller hero so the couple (about a third down the photo, which fills the
	   hero's height) sits above the text block. */
	.ts-hero-left > .e-con { max-width: none !important; width: auto !important; margin: 0 var(--ts-hdr-pad-x, 20px) !important; padding-right: 0 !important; }
	.ts-hero-left.e-con { min-height: 820px !important; }
	.ts-hero-left h1.elementor-heading-title { font-size: 38px !important; }
}
