/*
Theme Name: EuroSense Hair
Theme URI: https://www.eurosensehair.com/
Author: Euro Sense
Description: Block theme for Euro Sense Hair Studio and Nails & Foot Care, Thomson Plaza, Singapore. Every page is built from core blocks and reusable patterns, fully editable in the Site Editor.
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eurosense-hair
Tags: full-site-editing, block-patterns, block-styles, custom-colors, custom-menu, editor-style, one-column, wide-blocks
*/

/*
 * Only rules theme.json cannot express live here:
 * block style variations, italic accent colour in headings,
 * and a few layout details.
 */

/* Remove the gap the root layout puts between header, main and footer */
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Italic words in headings pick up the brand red (rose on dark sections) */
:where(h1, h2, h3, h4) em { color: var(--wp--preset--color--primary); font-style: italic; }
.has-ink-background-color :where(h1, h2, h3, h4) em { color: var(--wp--preset--color--rose); }
.has-sage-color :where(h1, h2, h3, h4) em { color: inherit; }

/* Paragraph style: Eyebrow label */
.is-style-eyebrow {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	text-transform: uppercase;
	line-height: 1.4;
}
.is-style-eyebrow:not(.has-text-color) { color: var(--wp--preset--color--primary); }

/* Paragraph style: Arrow link */
.is-style-text-link {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.is-style-text-link a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; color: inherit; }
.is-style-text-link a:hover { color: var(--wp--preset--color--primary); }

/* Image style: Arch */
.wp-block-image.is-style-arch img { border-radius: var(--wp--custom--radius--arch); }

/* List style: Pills */
ul.is-style-pills { list-style: none; padding: 0; margin-left: 0; display: flex; flex-wrap: wrap; gap: 6px; }
ul.is-style-pills li { font-size: 0.75rem; line-height: 1.3; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: 4px 11px; color: var(--wp--preset--color--ink-soft); background: var(--wp--preset--color--base); margin: 0; }

/* List style: Timeline */
ul.is-style-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--wp--preset--color--line); display: grid; gap: 22px; }
ul.is-style-timeline li { position: relative; color: var(--wp--preset--color--ink-soft); }
ul.is-style-timeline li::before { content: ""; position: absolute; left: -29px; top: 0.45em; width: 11px; height: 11px; border-radius: 50%; background: var(--wp--preset--color--base); border: 2px solid var(--wp--preset--color--primary); }
ul.is-style-timeline li:last-child::before { background: var(--wp--preset--color--sage); border-color: var(--wp--preset--color--sage); }
ul.is-style-timeline strong { display: block; font-family: var(--wp--preset--font-family--cormorant-garamond); font-size: 1.375rem; font-weight: 500; line-height: 1.1; color: var(--wp--preset--color--primary); }

/* Table style: Minimal rows (label left, value right) */
.wp-block-table.is-style-minimal table { border-collapse: collapse; width: 100%; }
.wp-block-table.is-style-minimal td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.7rem 0; }
.wp-block-table.is-style-minimal tr:first-child td { border-top: 1px solid var(--wp--preset--color--line); }
.wp-block-table.is-style-minimal td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.has-ink-background-color .wp-block-table.is-style-minimal td { border-color: var(--wp--preset--color--line-dark); }

/* Outline buttons: thin border in the text colour */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1px solid currentColor; padding: 0.95rem 1.5rem; }
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) { color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--ink); }
.has-ink-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--base); }

/* FAQ (Details block) */
.wp-block-details summary { cursor: pointer; font-family: var(--wp--preset--font-family--cormorant-garamond); font-size: 1.3rem; line-height: 1.3; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--jost); color: var(--wp--preset--color--primary); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { margin-top: 0.75rem; }

/* Header: current page in the menu */
.es-header .wp-block-navigation .current-menu-item > a,
.es-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] { color: var(--wp--preset--color--primary); border-bottom: 1px solid currentColor; }
.es-header .wp-block-site-title a { color: var(--wp--preset--color--ink); }

/* Anchor targets clear the admin bar */
[id] { scroll-margin-top: 2rem; }

/* Cards: keep their contents at the top, equal heights in grids */
.is-layout-grid > .wp-block-group { height: 100%; }

@media (max-width: 781px) {
	.es-hide-mobile { display: none !important; }
	.es-topbar { justify-content: center !important; }
	.wp-block-buttons.is-content-justification-right { justify-content: flex-start; }
}

/* Accessible hidden text (used by Social Icons and Navigation) */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: var(--wp--preset--color--base); clip: auto !important; clip-path: none; color: var(--wp--preset--color--ink); display: block; height: auto; left: 5px; padding: 15px 23px 14px; top: 5px; width: auto; z-index: 100000; }

/* Parent menu item stays highlighted on its subpages */
.es-header .wp-block-navigation .current-menu-ancestor > a,
.es-header .wp-block-navigation a.current-menu-ancestor { color: var(--wp--preset--color--primary); }
.es-header .wp-block-navigation .wp-block-navigation__submenu-container { border-color: var(--wp--preset--color--line); padding: 0.5rem 0; }

/* Heading style: Sage accent (italic words in tea-tree sage, for foot-care pages) */
.is-style-sage-accent em { color: var(--wp--preset--color--sage); }
