/*
Theme Name:   The Salon Maidenhead
Theme URI:    https://www.thesalonmaidenhead.co.uk/
Description:  Child theme of Hello Elementor for The Salon Maidenhead. Built by BOOSTmySALON.
Author:       BOOSTmySALON
Author URI:   https://boostmysalon.co.uk/
Template:     hello-elementor
Version:      1.0.3
Text Domain:  thesalon-child
*/

/* ==========================================================
   1. DESIGN TOKENS  (matches the original Luxury Spa look)
   ========================================================== */
:root {
	--ts-cream:      #F7F4F0;  /* page background            */
	--ts-white:      #FFFFFF;
	--ts-text:       #6A6560;  /* body copy                   */
	--ts-taupe:      #B8A48D;  /* accent / buttons / rules    */
	--ts-taupe-dark: #9C8770;  /* button hover, AA on cream   */
	--ts-sand:       #A29980;  /* promo strip                 */
	--ts-charcoal:   #3A3735;  /* header                      */
	--ts-ink:        #2A2D2C;  /* top bar / footer base       */
	--ts-heading:    #474443;  /* headings on light           */
	--ts-line:       #E4DDD4;

	--ts-font-head:  "Marcellus", Georgia, "Times New Roman", serif;
	--ts-font-body:  "Roboto", Arial, Helvetica, sans-serif;
	--ts-font-ui:    "Karla", Arial, Helvetica, sans-serif;

	--ts-wrap:       1200px;
	--ts-radius:     0;        /* original is square-edged */
	--ts-shadow:     0 10px 30px rgba(42, 45, 44, .08);
}

/* ==========================================================
   2. BASE
   ========================================================== */
html { scroll-behavior: smooth; }
body {
	background: var(--ts-cream);
	color: var(--ts-text);
	font-family: var(--ts-font-body);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.elementor-widget-heading .elementor-heading-title {
	font-family: var(--ts-font-head);
	font-weight: 400;
	color: var(--ts-heading);
	line-height: 1.25;
	letter-spacing: .01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
a { color: var(--ts-taupe-dark); transition: color .2s ease; }
a:hover, a:focus { color: var(--ts-heading); }
img { max-width: 100%; height: auto; }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--ts-taupe); outline-offset: 3px; }

.ts-wrap { max-width: var(--ts-wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; z-index: 10000; }

/* Eyebrow / small caps label */
.ts-eyebrow,
.ts-eyebrow .elementor-heading-title {
	font-family: var(--ts-font-ui) !important;
	font-size: 12px !important;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--ts-taupe-dark) !important;
}

/* Taupe hairline under section titles */
.ts-rule .elementor-heading-title::after,
.ts-rule:not(.elementor-widget)::after {
	content: "";
	display: block;
	width: 60px;
	height: 1px;
	background: var(--ts-taupe);
	margin: 18px auto 0;
}
.ts-rule.ts-left .elementor-heading-title::after { margin-left: 0; }

/* ==========================================================
   3. BUTTONS
   ========================================================== */
/* Styles go on the <a>, never the Elementor widget wrapper (which also carries .ts-btn) */
a.ts-btn,
.ts-btn .elementor-button {
	display: inline-block;
	background: var(--ts-taupe);
	color: #fff !important;
	font-family: var(--ts-font-ui);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 18px 34px;
	border: 1px solid var(--ts-taupe);
	border-radius: var(--ts-radius);
	text-decoration: none;
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}
a.ts-btn:hover,
.ts-btn .elementor-button:hover { background: var(--ts-taupe-dark); border-color: var(--ts-taupe-dark); }
.elementor-widget.ts-btn { background: none !important; border: 0 !important; padding: 0 !important; }
.ts-btn-ghost .elementor-button,
a.ts-btn.ts-btn-ghost {
	background: transparent !important;
	border-color: rgba(255,255,255,.7);
}
.ts-btn-ghost .elementor-button:hover,
a.ts-btn.ts-btn-ghost:hover { background: #fff !important; color: var(--ts-heading) !important; border-color: #fff; }
.ts-btn .elementor-button-content-wrapper,
.ts-btn .elementor-button-text { border: 0 !important; padding: 0 !important; background: none !important; }
.ts-btn-outline .elementor-button {
	background: transparent !important;
	color: var(--ts-heading) !important;
	border-color: var(--ts-taupe);
}
.ts-btn-outline .elementor-button:hover { background: var(--ts-taupe) !important; color: #fff !important; }

/* ==========================================================
   4. HEADER  (header.php)
   ========================================================== */
.ts-topbar {
	background: var(--ts-ink);
	color: rgba(255,255,255,.75);
	font-family: var(--ts-font-ui);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.ts-topbar .ts-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.ts-topbar a { color: #fff; text-decoration: none; }
.ts-topbar a:hover { color: var(--ts-taupe); }
.ts-topbar .ts-topbar-hours { opacity: .75; }

.ts-header {
	background: var(--ts-charcoal);
	position: sticky;
	top: 0;
	z-index: 999;
	transition: box-shadow .3s ease;
}
.admin-bar .ts-header { top: 32px; }
.ts-header.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ts-header .ts-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 24px; }
.ts-logo img { display: block; max-height: 72px; width: auto; }
.ts-header.is-scrolled .ts-logo img { max-height: 56px; }

.ts-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.ts-nav li { position: relative; }
.ts-nav a {
	display: block;
	white-space: nowrap;
	padding: 12px 12px;
	color: rgba(255,255,255,.7);
	font-family: var(--ts-font-ui);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
}
.ts-nav a:hover,
.ts-nav .current-menu-item > a,
.ts-nav .current-menu-ancestor > a { color: #fff; }
.ts-nav .sub-menu {
	position: absolute; left: 0; top: 100%;
	display: block; min-width: 230px;
	background: var(--ts-charcoal);
	padding: 8px 0;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .2s ease;
	box-shadow: var(--ts-shadow);
}
.ts-nav li:hover > .sub-menu,
.ts-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ts-nav .sub-menu a { padding: 10px 20px; }
.ts-nav .menu-item-book > a,
.ts-header-cta {
	background: var(--ts-taupe);
	color: #fff !important;
	padding: 14px 22px;
	margin-left: 8px;
}
.ts-nav .menu-item-book > a:hover { background: var(--ts-taupe-dark); }

.ts-burger {
	display: none;
	background: none; border: 0; padding: 10px; cursor: pointer;
	color: #fff;
}
.ts-burger span, .ts-burger span::before, .ts-burger span::after {
	display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: .25s;
}
.ts-burger span::before, .ts-burger span::after { content: ""; position: absolute; left: 0; }
.ts-burger span::before { top: -7px; }
.ts-burger span::after  { top: 7px; }
.ts-burger[aria-expanded="true"] span { background: transparent; }
.ts-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.ts-burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
	.ts-burger { display: block; }
	.ts-header .ts-wrap { min-height: 80px; }
	.ts-logo img { max-height: 58px; }
	.ts-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--ts-charcoal);
		max-height: 0; overflow: hidden;
		transition: max-height .35s ease;
	}
	.ts-nav.is-open { max-height: 80vh; overflow-y: auto; }
	.ts-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 24px; }
	.ts-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
	.ts-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
	.ts-nav .menu-item-book > a { margin: 16px 0 0; text-align: center; }
	.ts-topbar .ts-topbar-hours { display: none; }
}

/* ==========================================================
   5. HERO + SECTIONS (Elementor CSS classes)
   ========================================================== */
.ts-hero {
	position: relative;
	min-height: 78vh;
	background-size: cover;
	background-position: center 25%;
}
.ts-hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(42,45,44,.25) 0%, rgba(42,45,44,.55) 100%);
	pointer-events: none;
}
.ts-hero > .e-con-inner, .ts-hero > .elementor-container { position: relative; z-index: 1; }
.ts-hero h1, .ts-hero .elementor-heading-title { color: #fff !important; }
.ts-hero .ts-sub, .ts-hero .ts-sub .elementor-heading-title {
	font-family: var(--ts-font-body) !important;
	font-weight: 300 !important;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem) !important;
	color: rgba(255,255,255,.9) !important;
	letter-spacing: .02em;
}
.ts-page-hero { min-height: 52vh; }
.ts-hero h1.elementor-heading-title,
.ts-page-hero h1.elementor-heading-title { font-size: clamp(2.4rem, 5vw, 4.2rem) !important; }

/* Big homepage headline: "Confident Hair. Effortless Beauty." */
.ts-hero-title .elementor-heading-title {
	font-family: var(--ts-font-head) !important;
	font-size: clamp(3rem, 7.5vw, 6.5rem) !important;
	line-height: 1.05 !important;
	letter-spacing: -.01em;
	margin: 14px 0 22px !important;
	text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
/* Small H1 above it gets fine lines either side */
.ts-hero .ts-eyebrow .elementor-heading-title {
	display: inline-flex; align-items: center; gap: 16px;
	font-size: 13px !important; letter-spacing: 4px;
}
.ts-hero .ts-eyebrow .elementor-heading-title::before,
.ts-hero .ts-eyebrow .elementor-heading-title::after {
	content: ""; width: 40px; height: 1px; background: rgba(255,255,255,.6);
}
.ts-hero .ts-sub .elementor-heading-title { max-width: 640px; margin: 0 auto; }
@media (max-width: 767px) {
	.ts-hero .ts-eyebrow .elementor-heading-title::before,
	.ts-hero .ts-eyebrow .elementor-heading-title::after { width: 18px; }
}

/* ---------- Service cards (boxed, image on top) ---------- */
.ts-service {
	background: #fff;
	box-shadow: var(--ts-shadow);
	overflow: hidden;
	transition: transform .35s ease, box-shadow .35s ease;
}
.ts-service:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(42,45,44,.14); }
.ts-service .elementor-widget-image { margin: 0 !important; overflow: hidden; }
.ts-service .elementor-widget-image img {
	display: block; width: 100%;
	aspect-ratio: 4 / 5; object-fit: cover;
	transition: transform .6s ease;
}
.ts-service:hover .elementor-widget-image img { transform: scale(1.05); }
.ts-service .ts-service-body { text-align: center; }
.ts-service .ts-service-body p { margin-bottom: 4px; }
.ts-link .elementor-button {
	background: none !important; border: 0 !important; padding: 6px 0 !important;
	color: var(--ts-taupe-dark) !important;
	font-family: var(--ts-font-ui); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
	border-bottom: 1px solid var(--ts-taupe) !important;
}
.ts-link .elementor-button:hover { color: var(--ts-heading) !important; }

/* ---------- Moving reviews strip ---------- */
.ts-marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	padding: 10px 0 30px;
}
.ts-marquee-track {
	display: flex; gap: 24px; width: max-content;
	animation: ts-scroll 60s linear infinite;
}
.ts-marquee:hover .ts-marquee-track,
.ts-marquee:focus-within .ts-marquee-track { animation-play-state: paused; }
.ts-marquee .ts-review {
	flex: 0 0 380px;
	background: #fff; padding: 34px 32px;
	box-shadow: var(--ts-shadow);
	text-align: left;
}
.ts-marquee .ts-review blockquote { font-size: 1.05rem; }
@keyframes ts-scroll { to { transform: translateX(calc(-50% - 12px)); } }
@media (max-width: 767px) { .ts-marquee .ts-review { flex-basis: 290px; padding: 26px 22px; } }
@media (prefers-reduced-motion: reduce) {
	.ts-marquee { overflow-x: auto; }
	.ts-marquee-track { animation: none; }
}

.ts-strip { background: var(--ts-sand); color: #fff; }
.ts-strip .elementor-heading-title, .ts-strip p, .ts-strip a { color: #fff !important; }

.ts-section-white { background: #fff; }
.ts-section-dark  { background: var(--ts-charcoal); color: rgba(255,255,255,.75); }
.ts-section-dark .elementor-heading-title { color: #fff !important; }

/* Service tiles (Hair / Beauty / Extensions / Offers) */
.ts-tile {
	position: relative;
	min-height: 420px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.ts-tile::before {
	content: ""; position: absolute; inset: 0;
	background: rgba(42,45,44,.45);
	transition: background .35s ease;
}
.ts-tile:hover::before { background: rgba(42,45,44,.65); }
.ts-tile > * { position: relative; z-index: 1; }
.ts-tile .elementor-heading-title { color: #fff !important; }

/* Cards */
.ts-card {
	background: #fff;
	padding: 40px 34px;
	box-shadow: var(--ts-shadow);
	height: 100%;
}
.ts-card .ts-price-lead,
.ts-card .ts-price-lead .elementor-heading-title { color: var(--ts-taupe-dark) !important; font-size: 1.6rem; }

/* Testimonials */
.ts-review blockquote {
	margin: 0;
	font-family: var(--ts-font-head);
	font-size: 1.15rem;
	line-height: 1.7;
	color: var(--ts-heading);
}
.ts-review cite {
	display: block; margin-top: 14px;
	font-style: normal;
	font-family: var(--ts-font-ui);
	font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
	color: var(--ts-taupe-dark);
}
.ts-stars { color: var(--ts-taupe); letter-spacing: 3px; }

/* Brand logos strip */
.ts-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; list-style: none; margin: 0; padding: 0; }
.ts-brands li { font-family: var(--ts-font-ui); letter-spacing: 3px; text-transform: uppercase; font-size: 14px; color: var(--ts-text); }

/* ==========================================================
   6. PRICE TABLES  (Text Editor widget -> <table class="ts-prices">)
   ========================================================== */
.ts-prices {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
	background: #fff;
	font-size: 15px;
}
.ts-prices caption {
	caption-side: top;
	text-align: left;
	font-family: var(--ts-font-head);
	font-size: 1.4rem;
	color: var(--ts-heading);
	padding: 0 0 12px;
}
.ts-prices th {
	font-family: var(--ts-font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #fff;
	background: var(--ts-taupe);
	padding: 12px 14px;
	text-align: left;
}
.ts-prices th:not(:first-child),
.ts-prices td:not(:first-child) { text-align: right; white-space: nowrap; }
.ts-prices td { padding: 12px 14px; border-bottom: 1px solid var(--ts-line); vertical-align: top; }
.ts-prices tr:hover td { background: #FBF9F6; }
.ts-prices small { display: block; color: #8d8780; font-size: 13px; }
.ts-note { font-size: 14px; color: #8d8780; font-style: italic; }

@media (max-width: 680px) {
	/* Stack multi-column price tables into cards on phones */
	.ts-prices.ts-multi thead { display: none; }
	.ts-prices.ts-multi tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--ts-line); }
	.ts-prices.ts-multi td { display: flex; justify-content: space-between; border: 0; padding: 3px 0; text-align: left !important; }
	.ts-prices.ts-multi td:first-child { font-weight: 500; color: var(--ts-heading); padding-bottom: 6px; display: block; }
	.ts-prices.ts-multi td[data-label]::before { content: attr(data-label); color: #8d8780; font-size: 13px; }
}

/* ==========================================================
   7. FAQ (Elementor Accordion / native details)
   ========================================================== */
.ts-faq details { border-bottom: 1px solid var(--ts-line); padding: 18px 0; }
.ts-faq summary {
	cursor: pointer; list-style: none;
	font-family: var(--ts-font-head); font-size: 1.15rem; color: var(--ts-heading);
	display: flex; justify-content: space-between; gap: 20px;
}
.ts-faq summary::-webkit-details-marker { display: none; }
.ts-faq summary::after { content: "+"; color: var(--ts-taupe); font-size: 1.4rem; line-height: 1; }
.ts-faq details[open] summary::after { content: "–"; }
.ts-faq details p { margin: 12px 0 0; }

/* ==========================================================
   8. FOOTER  (footer.php)
   ========================================================== */
.ts-footer {
	background: var(--ts-ink);
	color: rgba(255,255,255,.65);
	font-size: 15px;
	padding: 70px 0 0;
}
.ts-footer h2 {
	font-family: var(--ts-font-ui);
	font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
	color: #fff; margin: 0 0 18px;
}
.ts-footer a { color: #fff; text-decoration: none; }
.ts-footer a:hover { color: var(--ts-taupe); }
.ts-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
.ts-footer-logo img { max-height: 80px; width: auto; margin-bottom: 18px; }
address { font-style: normal; }
.ts-hours { width: 100%; }
.ts-hours { list-style: none; margin: 0; padding: 0; }
.ts-hours li { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); padding: 6px 0; }
.ts-hours li { border-bottom-color: var(--ts-line); }
.ts-hours li span:first-child { color: var(--ts-heading); font-weight: 400; }
.ts-footer .ts-hours li { border-bottom-color: rgba(255,255,255,.08); }
.ts-footer .ts-hours li span:first-child { color: #fff; }
.ts-footer-menu { list-style: none; margin: 0; padding: 0; }
.ts-footer-menu li { padding: 4px 0; }
.ts-footer-bottom {
	margin-top: 60px; padding: 22px 0;
	border-top: 1px solid rgba(255,255,255,.08);
	font-size: 13px; text-align: center; color: rgba(255,255,255,.5);
}
.ts-footer-bottom .ts-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 960px) { .ts-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ts-footer-grid { grid-template-columns: 1fr; } }

/* Floating mobile Call / Book bar */
.ts-mobile-bar { display: none; }
@media (max-width: 767px) {
	.ts-mobile-bar {
		display: grid; grid-template-columns: 1fr 1fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
		box-shadow: 0 -4px 16px rgba(0,0,0,.15);
	}
	.ts-mobile-bar a {
		text-align: center; padding: 16px 10px;
		font-family: var(--ts-font-ui); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
		text-decoration: none; color: #fff; background: var(--ts-charcoal);
	}
	.ts-mobile-bar a + a { background: var(--ts-taupe); }
	body { padding-bottom: 54px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
