/* Hassan Mazhar — styles theme.json cannot express. */

:root {
	--hm-gold: var(--wp--preset--color--accent-1);
	--hm-black: var(--wp--preset--color--contrast);
	--hm-ivory: var(--wp--preset--color--base);
	--hm-hairline: color-mix(in srgb, currentColor 16%, transparent);
	--hm-ease: cubic-bezier(.2, .7, .2, 1);
	--hm-gutter: clamp(16px, 4vw, 48px);
}

::selection { background: var(--hm-gold); color: var(--hm-black); }

/* Full-bleed sections sit flush against each other and the header/footer
   on the home page and landing-template pages. */
:is(.home, .page-template-page-landing) .wp-site-blocks > :is(main, footer),
.wp-block-post-content > .alignfull { margin-block: 0; }
.wp-site-blocks > footer { margin-top: var(--wp--preset--spacing--70); }
:is(.home, .page-template-page-landing) .wp-site-blocks > footer { margin-top: 0; }
.wp-block-columns.alignfull.has-background { padding: 0; }

:where(a, button, summary, input):focus-visible {
	outline: 2px solid var(--hm-gold);
	outline-offset: 3px;
}

/* ---------- Type helpers ---------- */

.hm-eyebrow {
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--hm-gold);
	margin-bottom: 0;
}

.hm-lead {
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	opacity: .85;
}
.has-text-align-center.hm-lead { margin-inline: auto; max-width: 640px; }

.hm-tagline {
	font-family: var(--wp--preset--font-family--cormorant);
	font-style: italic;
	font-size: clamp(1.4rem, 2.2vw, 1.75rem);
	line-height: 1.3;
	color: var(--hm-gold);
}

.hm-numeral {
	font-family: var(--wp--preset--font-family--cormorant);
	font-style: italic;
	font-size: 2.6rem;
	line-height: 1;
	color: var(--hm-gold);
	margin: 0;
}

.hm-quote {
	border-left: 2px solid var(--hm-gold);
	padding-left: 1.25rem;
	margin-block: 2rem;
}
.hm-quote p { margin: 0; }
.hm-quote--center {
	border: 0;
	padding: 0;
	text-align: center;
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

/* ---------- Buttons ---------- */

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: currentColor;
	border-color: currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--hm-black);
	border-color: var(--hm-black);
	color: var(--hm-ivory);
}
.wp-block-button.hm-btn-light > .wp-block-button__link {
	background: var(--hm-ivory);
	border-color: var(--hm-ivory);
	color: var(--hm-black);
}
.wp-block-button.hm-btn-light > .wp-block-button__link:hover,
.wp-block-button.hm-btn-on-dark > .wp-block-button__link:hover {
	background: var(--hm-gold);
	border-color: var(--hm-gold);
	color: var(--hm-black);
}
.wp-block-button__link { transition: background-color .3s, color .3s, border-color .3s; }

/* ---------- Header ---------- */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

.hm-announcement { padding: .55rem var(--hm-gutter); }
.hm-announcement p {
	margin: 0;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-size: .66rem;
}
.hm-announcement a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

.hm-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "left logo actions" "nav nav nav";
	align-items: center;
	padding: 18px var(--hm-gutter) 0;
}
.hm-header > * { margin: 0 !important; }
.hm-header__logo { grid-area: logo; justify-self: center; }
.hm-header__logo img { width: 210px; height: auto; }
.hm-header__actions { grid-area: actions; justify-self: end; gap: 6px; }
/* `nav.` — core also copies the class onto the inner <ul>. */
nav.hm-header__nav {
	grid-area: nav;
	margin-top: 16px !important;
	padding: 12px 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
}
.hm-header__nav .wp-block-navigation__container { gap: clamp(18px, 2.4vw, 40px); }
.hm-header__nav a { text-decoration: none; }
.hm-header__nav .wp-block-navigation-item__content { padding-block: 4px; border-bottom: 1px solid transparent; transition: border-color .3s; }
.hm-header__nav .wp-block-navigation-item__content:hover { border-bottom-color: var(--hm-gold); }
.hm-header__nav .wp-block-navigation__submenu-container {
	background: var(--hm-black) !important;
	border: 1px solid rgba(255, 255, 255, .12) !important;
	padding: 10px 0;
	min-width: 220px !important;
}
.hm-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 20px; }

.hm-btn-small > .wp-block-button__link { padding: .6rem 1.2rem; font-size: .66rem; }

@media (max-width: 599px) {
	.hm-header {
		grid-template-areas: "left logo actions";
		padding-bottom: 14px;
	}
	.hm-header__logo img { width: 150px; }
	nav.hm-header__nav { grid-area: left; margin-top: 0 !important; padding: 0; border: 0; justify-self: start; }
	/* Logo centres between the hamburger and the button; button never wraps. */
	.hm-header { grid-template-columns: auto 1fr auto; column-gap: 12px; }
	.hm-btn-small > .wp-block-button__link { padding: .5rem .7rem; font-size: .6rem; letter-spacing: .1em; white-space: nowrap; }
	.hm-announcement p { font-size: .6rem; letter-spacing: .12em; }
}

/* ---------- Hero ---------- */

.hm-hero { min-height: min(88vh, 900px); margin-block: 0 !important; }
.hm-hero__text { padding: clamp(48px, 7vw, 120px) clamp(24px, 6vw, 96px); }
.hm-hero__title { font-size: var(--wp--preset--font-size--display); max-width: 12ch; }
.hm-hero__media { position: relative; min-height: 520px; }
.hm-hero__media figure,
.hm-split__media figure { position: absolute; inset: 0; margin: 0; }
.hm-hero__media img,
.hm-split__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hm-crest { margin-bottom: 1rem; }
.hm-crest img { opacity: .9; }

@media (max-width: 781px) {
	.hm-hero__media { order: -1; min-height: 72vh; flex-basis: 100% !important; }
}

/* ---------- Split feature ---------- */

.hm-split { margin-block: 0 !important; }
.hm-split__media { position: relative; min-height: clamp(480px, 80vh, 860px); }
.hm-split__text { padding: clamp(48px, 7vw, 120px) clamp(24px, 6vw, 110px); }
@media (max-width: 781px) { .hm-split__media { min-height: 70vh; flex-basis: 100% !important; } }

/* ---------- Image hover + tiles ---------- */

.hm-category-grid figure,
.hm-strip figure,
.hm-offset-pair figure { overflow: hidden; }
.hm-category-grid img,
.hm-strip img { transition: transform 1.2s var(--hm-ease); }
.hm-category-grid figure:hover img,
.hm-strip figure:hover img { transform: scale(1.04); }
.hm-category-grid h3 { margin-top: 1rem; }
.hm-category-grid h3 a { text-decoration: none; }
.hm-category-grid h3 a::after { content: " →"; color: var(--hm-gold); }

@media (min-width: 600px) and (max-width: 781px) {
	.hm-category-grid { flex-wrap: wrap !important; }
	.hm-category-grid > .wp-block-column { flex-basis: calc(50% - 1rem) !important; }
}

.hm-offset-pair > .wp-block-column:last-child { margin-top: clamp(40px, 8vw, 110px); }

/* Full-bleed image strips */
.hm-strip-head { margin-bottom: var(--wp--preset--spacing--50) !important; }
.wp-block-gallery.hm-strip { gap: 0 !important; margin-block: 0; }
.wp-block-gallery.hm-strip > figure.wp-block-image {
	width: 25% !important;
	margin: 0 !important;
	aspect-ratio: 4 / 5;
}
.wp-block-gallery.hm-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 781px) {
	.wp-block-gallery.hm-strip > figure.wp-block-image { width: 50% !important; }
}

/* Lookbook masonry */
.wp-block-gallery.hm-masonry {
	display: block !important;
	columns: 3 280px;
	column-gap: 12px;
	max-width: 1320px;
	margin-inline: auto;
}
.wp-block-gallery.hm-masonry > figure.wp-block-image {
	display: block;
	width: 100% !important;
	margin: 0 0 12px !important;
	break-inside: avoid;
}
.wp-block-gallery.hm-masonry img { width: 100%; height: auto; }

/* ---------- Dark sections ---------- */

.hm-dark-section a:not(.wp-block-button__link) { color: inherit; }
.hm-steps > .wp-block-column {
	border-top: 1px solid rgba(255, 255, 255, .16);
	padding-top: 1.75rem;
}
.hm-steps h3 { margin-top: 1rem; }

/* ---------- Page hero (cover) ---------- */

.hm-page-hero.wp-block-cover { padding-inline: var(--hm-gutter); }
.hm-page-hero .wp-block-cover__inner-container {
	/* Core's bottom-left position rule sets width:auto at higher specificity. */
	width: 100% !important;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto !important;
	padding-bottom: clamp(32px, 6vw, 80px);
}
.hm-page-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; max-width: none; }
.hm-page-hero h1 { max-width: 16ch !important; margin-top: .5rem; }

/* ---------- Bespoke page ---------- */

.hm-sticky { position: sticky; top: 170px; }
.hm-step {
	gap: 1.5rem !important;
	border-top: 1px solid var(--hm-hairline);
	padding-top: 1.75rem;
	margin-top: 1.75rem !important;
}
.hm-step .hm-numeral { min-width: 3.2rem; }
.hm-step h3 { margin-top: .2rem; }

.hm-faq {
	max-width: 760px;
	margin-inline: auto !important;
	border-bottom: 1px solid var(--hm-hairline);
	padding: 0;
}
.hm-faq summary {
	font-family: var(--wp--preset--font-family--cinzel);
	font-size: 1.1rem;
	letter-spacing: .04em;
	padding: 1.3rem 2rem 1.3rem 0;
	cursor: pointer;
	list-style: none;
	position: relative;
}
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--jost);
	font-weight: 300;
	font-size: 1.5rem;
	color: var(--hm-gold);
	transition: transform .3s;
}
.hm-faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.hm-faq > p { padding-bottom: 1.3rem; margin-top: 0; }

/* ---------- Visit / contact ---------- */

.hm-follow-label { margin-top: 2rem !important; }
.hm-follow { gap: 1rem !important; margin-top: .75rem !important; }
.hm-follow .wp-social-link svg { width: 26px; height: 26px; }

.hm-hours table { border-collapse: collapse; width: 100%; max-width: 420px; }
.hm-hours td {
	border: 0;
	border-bottom: 1px solid var(--hm-hairline);
	padding: .55rem 0;
	font-size: .95rem;
}
.hm-hours td:last-child { text-align: right; }
.hm-map {
	aspect-ratio: 4 / 3;
	background: var(--wp--preset--color--accent-2);
}
.hm-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(1) contrast(1.05);
}
.hm-contact-ways > .wp-block-column {
	border: 1px solid rgba(255, 255, 255, .14);
	padding: 2rem 1.5rem;
}

/* ---------- Collections ---------- */

.hm-pieces { gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px) !important; margin-top: var(--wp--preset--spacing--50) !important; }
.hm-piece > * { margin-block: 0; }
.hm-piece figure { overflow: hidden; margin-bottom: 1.1rem !important; }
.hm-piece img { object-position: 50% 25%; }
/* Second view fades in on hover. */
.hm-piece__media { position: relative; overflow: hidden; margin-bottom: 1.1rem !important; }
.hm-piece__media figure { margin: 0 !important; }
.hm-piece__alt { position: absolute !important; inset: 0; opacity: 0; transition: opacity .6s var(--hm-ease); }
.hm-piece__alt img { width: 100%; height: 100%; }
.hm-piece:hover .hm-piece__alt { opacity: 1; }
.hm-piece img { transition: transform 1.2s var(--hm-ease); }
.hm-piece:hover img { transform: scale(1.03); }
.hm-piece__name { font-size: 1.05rem !important; letter-spacing: .06em; }
.hm-piece__details {
	margin-top: .35rem !important;
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--hm-gold);
}
.hm-piece__desc { margin-top: .6rem !important; font-size: .9rem; line-height: 1.6; opacity: .85; }
.hm-piece__enquire { margin-top: .9rem !important; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.hm-piece__enquire a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.hm-piece__enquire a::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: .55rem;
	border-radius: 50%;
	background: #25d366;
	vertical-align: middle;
}

/* Everyday cards, themed weddings, tables */
.hm-choice h3 { margin-top: 1.25rem; }
.hm-choice figure { overflow: hidden; }
.hm-choice img { transition: transform 1.2s var(--hm-ease); }
.hm-choice figure:hover img { transform: scale(1.03); }

.hm-ticks { list-style: none; padding: 0; }
.hm-ticks li { position: relative; padding: .3rem 0 .3rem 1.6rem; }
.hm-ticks li::before { content: "✦"; position: absolute; left: 0; top: .55rem; font-size: .7rem; color: var(--hm-gold); }

.hm-who > .wp-block-column { border-top: 1px solid var(--hm-hairline); padding-top: 1.5rem; }
.hm-themes h3 { margin-top: 1.25rem; }
.hm-themes .hm-eyebrow { margin-top: .4rem; }

.hm-price-table table { border-collapse: collapse; width: 100%; }
.hm-price-table th {
	text-align: left;
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--hm-gold);
	border: 0;
	border-bottom: 1px solid currentColor;
	padding: .6rem .75rem .6rem 0;
}
.hm-price-table td { border: 0; border-bottom: 1px solid var(--hm-hairline); padding: .8rem .75rem .8rem 0; font-size: .95rem; vertical-align: top; }
.hm-price-table td:first-child { font-family: var(--wp--preset--font-family--cinzel); white-space: nowrap; }
.hm-option { border-top: 1px solid var(--hm-hairline); padding-top: 1rem; margin-top: 1rem !important; }
.hm-option h3 { margin: 0; letter-spacing: .08em; }
.hm-option p { margin-top: .3rem; }

/* ---------- Footer ---------- */

.hm-footer a { color: inherit; text-decoration: none; }
.hm-footer a:hover { color: var(--hm-ivory); }
.hm-footer__heading {
	font-family: var(--wp--preset--font-family--jost);
	font-size: .72rem !important;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--hm-ivory);
}
.hm-footer__links { list-style: none; padding: 0; font-size: .92rem; }
.hm-footer__links li { padding: .2rem 0; }
.hm-footer .hm-tagline { margin-top: 1.5rem; }
.hm-footer__bottom p { margin: 0; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.hm-footer .wp-block-separator { opacity: .6; margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30); }

/* ---------- Floating WhatsApp ---------- */

.hm-whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	transition: transform .3s var(--hm-ease);
}
.hm-whatsapp-float:hover { transform: scale(1.07); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
