/*
Theme Name: ABL Atelier
Theme URI: https://asianbridallooks.com/
Description: Custom theme for Asian Bridal Looks. Works with the ABL Academy plugin, which holds courses, dates, bookings and enquiries.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: abl-atelier
License: Proprietary
*/

/* Two registers: white "specimen" pages for the mannequin hair work, an umber "portrait room" for makeup.
   One pointed-arch window is the signature; zari gold appears only as a hairline where something is framed. */
:root {
	color-scheme: light;
	--paper: #ffffff;
	--ink: #241b19;
	--umber: #2b211e;
	--oxblood: #7a2232;
	--oxblood-dark: #631a28;
	--zari: #a8874f;
	--zari-lit: #c9a96b;
	--stone: #6b5d54;
	--mist: #f4efe9;
	--line: #e6ddd3;
	--on-umber: #f3ebe2;
	--on-umber-2: #c8b8a8;
	--ok: #2f6b45;
	--warn: #8a5a12;
	--error: #a3242f;
	--display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(16px, 4vw, 48px);
	--max: 1240px;
	--measure: 68ch;
	--section: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
img, video, iframe { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; line-height: 1.12; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 12px; }
.muted { color: var(--stone); }
.small { font-size: 14px; }

/* Actions */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--oxblood); color: #fff; text-decoration: none; font: 600 16px/1.2 var(--body); border: 1px solid var(--oxblood); border-radius: 2px; cursor: pointer; text-align: center; }
.btn:hover { background: var(--oxblood-dark); border-color: var(--oxblood-dark); }
.btn.ghost { background: transparent; color: var(--oxblood); }
.btn.ghost:hover { background: var(--oxblood); color: #fff; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.textlink { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--zari); }
.textlink:hover { text-decoration-color: currentColor; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; flex-wrap: wrap; padding-block: 10px; }
.mark { font-family: var(--display); font-size: 25px; letter-spacing: .01em; text-decoration: none; margin-right: auto; line-height: 1.1; }
.mark em { font-style: italic; color: var(--oxblood); }
.site-nav ul { display: flex; gap: 22px; font-size: 15px; font-weight: 500; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; padding-block: 6px; display: inline-block; }
.site-nav a:hover, .site-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--zari); }
.head-cta { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.head-cta .tel { font-variant-numeric: tabular-nums; color: var(--stone); text-decoration: none; }

/* Notices */
.notice-bar { background: var(--mist); border-bottom: 1px solid var(--line); font-size: 15px; }
.notice-bar .wrap { padding-block: 10px; }
.alert { padding: 14px 16px; border-left: 3px solid var(--stone); background: var(--mist); font-size: 15px; }
.alert.ok { border-color: var(--ok); }
.alert.error { border-color: var(--error); }
.alert strong { font-weight: 600; }

/* Page head (inner pages) */
.page-head { padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -.01em; }
.page-head .lede { margin-top: 16px; font-size: clamp(18px, 1.6vw, 20px); max-width: 52ch; color: var(--stone); }
.crumbs { font-size: 14px; color: var(--stone); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { padding-inline: 6px; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: end; padding-block: clamp(32px, 6vw, 72px) 0; }
.hero h1 { font-size: clamp(40px, 6.2vw, 82px); line-height: 1.02; letter-spacing: -.01em; }
.hero .lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 20px); max-width: 34ch; color: var(--stone); }
.actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.facts { list-style: none; padding: 0; margin: 40px 0 clamp(28px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts li { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: grid; gap: 2px; }
.facts b { font-family: var(--display); font-weight: 500; font-size: 22px; }

/* The arch: the one signature motif */
.arch-fig { position: relative; justify-self: end; width: min(100%, 470px); }
.arch { position: relative; aspect-ratio: 2 / 3; }
.arch img { width: 100%; height: 100%; object-fit: cover; clip-path: url(#archClip); }
.arch svg.outline { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 12px); overflow: visible; pointer-events: none; }
.arch-fig figcaption { font-size: 13px; color: var(--stone); padding: 14px 0 0; max-width: 40ch; }
.arch-fig figcaption strong { color: var(--ink); font-weight: 600; }

/* Sections */
.section { padding-block: var(--section); }
.section.tint { background: var(--mist); }
.sec-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 52ch; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
.sec-head p { color: var(--stone); }
.sec-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--stone); }

/* Course index rows */
.cat { display: grid; grid-template-columns: 96px minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; }
.cat:last-child { border-bottom: 1px solid var(--line); }
.cat:hover h3, .cat:focus-visible h3 { color: var(--oxblood); }
.cat img { width: 96px; height: 120px; object-fit: cover; }
.cat h3 { font-size: clamp(24px, 2.4vw, 32px); }
.cat .who { font-size: 15px; color: var(--stone); margin-top: 4px; }
.cat dl { display: grid; gap: 2px; font-size: 15px; }
.cat dt { color: var(--stone); font-size: 13px; }
.cat dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Course list within a category */
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px 24px; }
.course-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
.course-card .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.course-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.course-card .body { display: grid; gap: 8px; align-content: start; padding-top: 14px; }
.course-card h3 { font-size: 24px; }
.course-card:hover h3 { color: var(--oxblood); }
.course-card p { font-size: 15px; color: var(--stone); }
.course-card .meta { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 15px; font-variant-numeric: tabular-nums; }
.course-card .meta b { font-weight: 600; }

/* Portrait room */
.room { background: var(--umber); color: var(--on-umber); }
.room .sec-head p, .room .muted, .room .crumbs { color: var(--on-umber-2); }
.room .sec-foot { border-top-color: rgba(201, 169, 107, .35); color: var(--on-umber-2); }
.room .textlink { color: var(--on-umber); text-decoration-color: var(--zari-lit); }
.room :focus-visible { outline-color: var(--zari-lit); }
.mosaic { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-auto-rows: clamp(240px, 26vw, 360px); gap: 12px; }
.mosaic figure { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.mosaic .tall { grid-row: span 2; }
.mosaic figcaption span { display: block; opacity: .85; }
.mosaic figcaption { font-size: 13px; color: var(--on-umber-2); padding-top: 8px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--umber); background: var(--zari-lit); padding: 3px 8px; border-radius: 2px; position: absolute; left: 10px; top: 10px; z-index: 1; }

/* Specimen plates in a jaali-lattice mount */
.plates { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; border: 1px solid var(--zari); padding: 10px;
	background:
		repeating-linear-gradient(45deg, transparent 0 13px, rgba(168, 135, 79, .22) 13px 14px),
		repeating-linear-gradient(-45deg, transparent 0 13px, rgba(168, 135, 79, .22) 13px 14px); }
.plate { background: var(--paper); scroll-snap-align: start; padding: 8px 8px 12px; border: 4px solid transparent; background-clip: padding-box; }
.plate img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.plate figcaption { font-size: 14px; padding-top: 8px; }
.plate figcaption span { display: block; color: var(--stone); font-size: 12px; }

/* Student work gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters a { font-size: 15px; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px; }
.filters a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.room .filters a { border-color: rgba(201, 169, 107, .35); }
.room .filters a[aria-current="true"] { background: var(--on-umber); color: var(--umber); border-color: var(--on-umber); }
.grid-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.grid-work figure { position: relative; }
.grid-work a { display: block; text-decoration: none; }
.grid-work img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.grid-work figcaption { font-size: 14px; padding-top: 8px; }
.grid-work figcaption span { display: block; font-size: 13px; color: var(--stone); }
.room .grid-work figcaption span { color: var(--on-umber-2); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); text-decoration: none; }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.room .pager a, .room .pager span { border-color: rgba(201, 169, 107, .35); }
.room .pager .current { background: var(--on-umber); color: var(--umber); }

/* Course page */
.course-top { background: var(--mist); padding-block: clamp(32px, 6vw, 72px); }
.course-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.course-top h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; }
.course-top .sum { margin-top: 16px; max-width: 52ch; color: var(--stone); font-size: 18px; }
.highlights { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; }
.highlights li { padding-left: 18px; position: relative; }
.highlights li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--zari); }
.keyfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0 0; border-top: 1px solid var(--line); }
.keyfacts div { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); }
.keyfacts dt { font-size: 13px; color: var(--stone); }
.keyfacts dd { margin: 2px 0 0; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.course-hero-img { margin-top: 28px; display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.course-hero-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 3; }
.course-hero-img .stack { display: grid; gap: 10px; }
.course-hero-img .stack img { aspect-ratio: 1; }

.dates { background: var(--paper); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.dates h2 { font-size: 26px; }
.date-list { list-style: none; padding: 0; margin: 0; }
.date { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.date .when { font-weight: 600; font-variant-numeric: tabular-nums; }
.date .meta { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; font-size: 14px; color: var(--stone); font-variant-numeric: tabular-nums; }
.date .act { grid-column: 2; grid-row: 1 / span 2; }
.status { font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.available { color: var(--ok); }
.status.limited { color: var(--warn); }
.status.sold_out, .status.closed, .status.enquire { color: var(--stone); }
.ask { font-size: 15px; background: var(--mist); padding: 14px 16px; }
.ask strong { font-weight: 600; }

.course-body { padding-block: var(--section); }
.course-body > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--section); }
.course-body > .wrap > *, .two-col > * { min-width: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.two-col > h2, .two-col > .sec-head { position: sticky; top: 24px; }
.two-col h2 { font-size: clamp(28px, 3.2vw, 40px); }
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 32px; }
.topics h3 { font-family: var(--body); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 16px; }
.ticks li { padding-left: 18px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--zari); }
.more-topics summary { cursor: pointer; margin-top: 10px; font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: var(--zari); text-underline-offset: 5px; list-style: none; display: inline-block; min-height: 24px; }
.more-topics summary::-webkit-details-marker { display: none; }
.more-topics[open] summary { display: none; }
.more-topics .ticks { margin-top: 4px; }
.syllabus { border-top: 1px solid var(--line); }
.syllabus details { border-bottom: 1px solid var(--line); }
.syllabus summary { cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; list-style: none; }
.syllabus summary::-webkit-details-marker { display: none; }
.syllabus summary::after { content: "+"; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--stone); }
.syllabus details[open] summary::after { content: "−"; }
.syllabus summary .opt { font-weight: 400; color: var(--stone); font-size: 15px; margin-left: 8px; }
.syllabus .ticks { padding-bottom: 18px; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.6em; }
.prose h3 { font-size: 24px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--zari); }
.prose figure img, .prose .wp-block-image img { margin-inline: auto; }
.prose figcaption { font-size: 14px; color: var(--stone); text-align: center; padding-top: 6px; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.prose .wp-block-gallery img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.prose .wp-block-embed iframe, .prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose blockquote { border-left: 1px solid var(--zari); padding-left: 18px; font-family: var(--display); font-style: italic; font-size: 20px; }
.included { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.included li { padding: 12px 0; border-bottom: 1px solid var(--line); }

.quote { padding: 26px 0 0; border-top: 1px solid var(--zari); max-width: 62ch; }
.quote p { font-family: var(--display); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; font-style: italic; }
.quote footer { margin-top: 14px; font-size: 14px; color: var(--stone); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 36px 48px; }
.quotes .quote p { font-size: 19px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; position: relative; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--display); font-size: 24px; color: var(--stone); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .answer { padding-bottom: 20px; max-width: var(--measure); color: var(--ink); }
.faq-list .answer > * + * { margin-top: .8em; }
.faq-topic + .faq-topic { margin-top: 48px; }
.faq-topic h2 { font-size: 28px; margin-bottom: 12px; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 560px; }
.form .row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--stone); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select { font: inherit; font-size: 17px; color: var(--ink); width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8f8178; border-radius: 2px; background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--oxblood); outline-offset: 0; border-color: var(--oxblood); }
.field .err { color: var(--error); font-size: 14px; font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--oxblood); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; gap: 20px; flex-wrap: wrap; }
.radios label { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.radios input { width: 20px; height: 20px; accent-color: var(--oxblood); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.context { font-size: 15px; background: var(--mist); padding: 12px 14px; border-left: 2px solid var(--zari); }
.enquiry { scroll-margin-top: 24px; }

/* Booking */
.booking { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(32px, 6vw, 64px) var(--section); }
.summary-box { background: var(--mist); padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; position: sticky; top: 24px; }
.summary-box h2 { font-size: 24px; }
.summary-box dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.summary-box dt { color: var(--stone); }
.summary-box dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.summary-box .due { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 600; }
.terms-box { font-size: 15px; border: 1px solid var(--line); padding: 14px 16px; max-height: 240px; overflow: auto; }
.terms-box > * + * { margin-top: .6em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 22px; line-height: 1.2; color: var(--zari); }

/* Blog */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 28px; }
.post-card { display: grid; gap: 10px; text-decoration: none; align-content: start; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card h2 { font-size: 24px; }
.post-card:hover h2 { color: var(--oxblood); }
.post-card p { color: var(--stone); font-size: 15px; }
.post-meta { font-size: 14px; color: var(--stone); }
.suggest { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--zari); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { display: grid; gap: 18px; }
.contact-list dt { font-size: 13px; color: var(--stone); }
.contact-list dd { margin: 2px 0 0; font-size: 19px; }
.contact-list a { text-decoration-color: var(--zari); text-underline-offset: 4px; }

address { font-style: normal; }

/* Location: the map sits in the same zari-hairline mount as the specimen plates. The address beside it is
   ordinary content, so it works without the map. Until the map loads (or without a key) the panel shows the
   location seal on a faint jaali lattice at the same size, so nothing shifts. */
.location { padding-block: 0 var(--section); }
.loc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: var(--section); border-top: 1px solid var(--line); }
.loc-card h2 { font-size: clamp(30px, 3.6vw, 46px); }
.loc-intro { margin-top: 12px; color: var(--stone); max-width: 38ch; }
.loc-card address { margin-top: 20px; font-size: 19px; line-height: 1.5; }
.loc-phone { margin-top: 10px; font-size: 19px; font-variant-numeric: tabular-nums; }
.loc-phone a { text-decoration-color: var(--zari); text-underline-offset: 4px; }
.loc-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; max-width: 46ch; }
.loc-note h3 { font-family: var(--body); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.loc-card .actions { margin-top: 26px; }
.loc-map { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--zari); background: var(--paper); }
.loc-map > * { position: absolute; inset: 10px; }
.loc-map [hidden] { display: none; }
.loc-fallback { display: grid; place-content: center; justify-items: center; gap: 6px; padding: 20px; text-align: center;
	background:
		repeating-linear-gradient(45deg, transparent 0 13px, rgba(168, 135, 79, .13) 13px 14px),
		repeating-linear-gradient(-45deg, transparent 0 13px, rgba(168, 135, 79, .13) 13px 14px),
		var(--mist); }
.loc-seal { width: clamp(96px, 12vw, 132px); height: auto; }
.loc-fallback .loc-seal { margin-bottom: 10px; }
.loc-fb-name { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.loc-fb-sub { font-size: 14px; letter-spacing: .06em; color: var(--stone); }
.loc-canvas { opacity: 0; background: var(--mist); }
.loc-map.is-live .loc-canvas { opacity: 1; }
.loc-map.is-live .loc-fallback { visibility: hidden; }
.loc-canvas iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.12) saturate(.9); }
.loc-map > .loc-show { inset: auto 10px 10px 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; padding: 0 0 18px; text-align: center; }
.loc-show p { width: 100%; font-size: 13px; color: var(--stone); }
.loc-map:has(.loc-show:not([hidden])) .loc-fallback { padding-bottom: 116px; }
.loc-show p { max-width: 44ch; margin-inline: auto; }
.loc-map > .loc-dev { inset: auto 10px 10px 10px; padding: 6px 10px; font-size: 12px; color: var(--stone); background: rgba(255, 255, 255, .92); border-left: 2px solid var(--zari); }
.loc-band { border-top: 1px solid var(--line); }
.loc-band .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px clamp(20px, 4vw, 44px); align-items: center; padding-block: clamp(32px, 5vw, 56px); }
.loc-band .loc-seal { width: 84px; }
.loc-band h2 { font-size: clamp(26px, 3vw, 36px); }
.loc-band address { margin-top: 6px; color: var(--stone); }
.loc-band .actions { margin-top: 0; }
.contact-list address { line-height: 1.5; }
.contact-list address + .textlink { display: inline-block; margin-top: 8px; font-size: 15px; }

/* WhatsApp: the glyph people recognise, in the surrounding text colour; never a floating bubble. */
.wa { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; text-decoration-color: var(--zari); text-underline-offset: 4px; }
.wa-icon { flex: none; }
.btn-wa { min-height: 48px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 2px; text-decoration: none; font-weight: 600; font-size: 16px; }
.btn-wa:hover { background: var(--ink); color: #fff; }
.dates-wa { font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.dates-wa .wa { font-weight: 600; text-decoration: underline; text-decoration-color: var(--zari); }
.contact-list .wa { font-size: 19px; }
.site-foot .wa-icon { width: 16px; height: 16px; }

/* Floating WhatsApp contact on the homepage: an umber pill with a zari hairline, the WhatsApp mark in its own
   green disc so it is recognised at a glance. Compact disc on phones. No looping animation. */
.wa-float { position: fixed; z-index: 40; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 6px; border-radius: 999px;
	background: var(--umber); color: var(--on-umber); border: 1px solid rgba(201, 169, 107, .55); text-decoration: none;
	font: 600 15px/1.2 var(--body); box-shadow: 0 6px 22px rgba(36, 27, 25, .22); }
.wa-float .wa-icon { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: #25d366; color: #fff; }
.wa-float:hover { background: #3a2c27; border-color: var(--zari-lit); }
.wa-float:focus-visible { outline: 2px solid var(--zari-lit); outline-offset: 3px; }
@media (max-width: 600px) {
	.wa-float { padding: 6px; gap: 0; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
	.wa-float .wa-icon { width: 44px; height: 44px; padding: 9px; }
	.wa-float > span:not(.visually-hidden) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	/* Room under the last footer line so the disc never sits on top of it. */
	body.home .site-foot { padding-bottom: 88px; }
}
@media print { .wa-float { display: none; } }

/* Footer */
.site-foot { background: var(--umber); color: var(--on-umber); padding-block: 56px 32px; font-size: 15px; }
.site-foot a { color: var(--on-umber); text-decoration-color: var(--zari-lit); text-underline-offset: 4px; }
.site-foot :focus-visible { outline-color: var(--zari-lit); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { font-size: 22px; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-addr { margin-bottom: 12px; color: var(--on-umber-2); line-height: 1.5; }
.foot-grid .mark { color: var(--on-umber); }
.foot-grid .mark em { color: var(--zari-lit); }
.foot-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(201, 169, 107, .35); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--on-umber-2); font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--zari-lit); text-underline-offset: 4px; cursor: pointer; }

/* Consent banner */
.consent { position: fixed; inset: auto 16px 16px 16px; max-width: 560px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-top: 2px solid var(--zari); box-shadow: 0 8px 28px rgba(36, 27, 25, .18); padding: 18px 20px; z-index: 50; display: grid; gap: 12px; font-size: 15px; }
.consent[hidden] { display: none; }
.consent h2 { font-size: 20px; }
.consent .actions { margin-top: 4px; gap: 12px; }
.consent .btn { min-height: 44px; }

/* Empty and error states */
.empty { padding: 28px; background: var(--mist); }
.empty > * + * { margin-top: 10px; }

@media (max-width: 900px) {
	.hero .wrap, .course-grid, .two-col, .booking, .contact-grid { grid-template-columns: 1fr; }
	.two-col > h2, .two-col > .sec-head, .summary-box { position: static; }
	.arch-fig { justify-self: start; width: min(100%, 420px); }
	.arch svg.outline { inset: -8px; width: calc(100% + 16px); height: calc(100% + 8px); }
	.cat { grid-template-columns: 72px repeat(3, minmax(0, 1fr)); gap: 12px 14px; align-items: start; }
	.cat img { width: 72px; height: 90px; grid-row: span 2; }
	.cat > div { grid-column: 2 / -1; }
	.mosaic { grid-template-columns: 1fr 1fr; }
	.mosaic { grid-auto-rows: clamp(220px, 60vw, 360px); }
	.mosaic .tall { grid-column: span 2; grid-row: span 2; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.foot-grid > :first-child { grid-column: 1 / -1; }
	.site-nav { order: 3; width: 100%; overflow-x: auto; }
	.site-nav ul { flex-wrap: nowrap; gap: 18px; }
	.loc-grid { grid-template-columns: 1fr; }
	.loc-band .wrap { grid-template-columns: auto minmax(0, 1fr); }
	.loc-band .actions { grid-column: 1 / -1; }
}
/* Related courses on phones: compact rows, so three courses can be compared without a long scroll. */
@media (max-width: 620px) {
	.courses.compact { gap: 18px; }
	.courses.compact .course-card { grid-template-rows: none; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; }
	.courses.compact .course-card .body { padding-top: 0; gap: 6px; }
	.courses.compact .course-card h3 { font-size: 21px; }
	.courses.compact .course-card p { font-size: 14px; }
	.courses.compact .course-card .meta { font-size: 14px; gap: 2px 12px; }
}
@media (max-width: 520px) {
	.facts, .keyfacts { grid-template-columns: 1fr 1fr; }
	.date { grid-template-columns: 1fr; }
	.date .act { grid-column: 1; grid-row: auto; }
	.date .act .btn { width: 100%; }
	.head-cta .tel { display: none; }
	.form .row { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr; }
	.consent { inset: auto 0 0 0; max-width: none; border-inline: 0; }
	.quote p, .quotes .quote p { font-size: 18px; line-height: 1.5; }
	.loc-map { aspect-ratio: 1; }
	.loc-map > * { inset: 6px; }
	.loc-band .loc-seal { width: 64px; }
}
@media (prefers-reduced-motion: no-preference) {
	.arch img { animation: settle 1.2s cubic-bezier(.2, .7, .2, 1) both; }
	.arch svg.outline path { stroke-dasharray: 2400; animation: draw 1.6s .2s ease-out both; }
	.loc-canvas { transition: opacity .6s ease; }
	.loc-map.is-live .loc-fallback { transition: visibility 0s .6s; }
	.wa-float { animation: wa-in .45s .6s cubic-bezier(.2, .7, .2, 1) both; transition: background-color .2s, border-color .2s; }
	@keyframes wa-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
	@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }
	@keyframes draw { from { stroke-dashoffset: 2400; } to { stroke-dashoffset: 0; } }
}
@media print {
	.site-head, .site-foot, .consent, .btn { display: none !important; }
}
