/*
Theme Name: Arriving at Yourself v2
Author: iMedia IT Solutions
Description: A calm one-page theme for Laura's mindfulness-based yoga practice in London, UK. On activation it creates an editable Home page built from standard WordPress blocks.
Version: 2.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: arriving-yoga-v2
*/

:root {
	--ink: #3a2e28;
	--ink-soft: #6b5a50;
	--sand: #fbf6f0;
	--cream: #f4ebe0;
	--sun: #e8893a;
	--sun-deep: #c2601f;
	--dusk: #4a4458;
	--line: #e6d8c8;
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Nunito Sans", system-ui, -apple-system, sans-serif;
	--measure: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--sand);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--sun-deep); }
section[id] { scroll-margin-top: 70px; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px clamp(16px, 5vw, 56px);
	transition: background .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
.site-header.scrolled { background: rgba(251,246,240,.96); box-shadow: 0 1px 0 var(--line); }
.brand {
	font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
	color: #fff; text-decoration: none; letter-spacing: .02em;
}
.site-header.scrolled .brand { color: var(--ink); }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.nav a {
	color: #fff; text-decoration: none; font-size: .82rem;
	letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.site-header.scrolled .nav a { color: var(--ink); }
.nav a:hover { color: var(--sun); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
.site-header.scrolled .menu-toggle { color: var(--ink); }

/* ---------- Shared block styling ---------- */
.home-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }

.wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
	display: inline-block; padding: 14px 30px; border-radius: 999px;
	background: var(--sun); color: #fff; text-decoration: none; border: 1.5px solid var(--sun);
	font-family: var(--sans); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
	transition: background .2s, transform .2s;
}
.wp-block-button__link:hover { background: var(--sun-deep); border-color: var(--sun-deep); color: #fff; transform: translateY(-1px); }
.wp-block-button.ghost .wp-block-button__link { background: transparent; border-color: #fff; }
.wp-block-button.ghost .wp-block-button__link:hover { background: rgba(255,255,255,.15); }
.wp-block-button.ig .wp-block-button__link::before {
	content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.5' y='2.5' width='19' height='19' rx='5.5' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='4.3' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='17.6' cy='6.4' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.5' y='2.5' width='19' height='19' rx='5.5' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='4.3' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='17.6' cy='6.4' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Hero (Cover block) ---------- */
.wp-block-cover.hero { color: #fff; text-align: center; padding: 0 16px 14vh; }
.wp-block-cover.hero .wp-block-cover__inner-container { max-width: 760px; width: 100%; }
.wp-block-cover.hero h1 {
	font-family: var(--serif); font-weight: 500; font-style: italic; color: #fff;
	font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05; margin: 0 0 .3em;
	text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.wp-block-cover.hero .hero-sub { font-size: 1.1rem; letter-spacing: .06em; margin: 0 0 1.8em; opacity: .95; color: #fff; }
.wp-block-cover.hero h1, .wp-block-cover.hero .hero-sub { text-align: center; }
.hero-buttons { justify-content: center; gap: 12px; }

/* ---------- Sections (Group blocks) ---------- */
.wp-block-group.section { padding: clamp(72px, 12vw, 130px) 16px; }
.wp-block-group.section.alt { background: var(--cream); }
.wp-block-group.section > *,
.wp-block-group.band > * { max-width: var(--measure); margin-left: auto !important; margin-right: auto !important; }

.section .eyebrow {
	color: var(--sun-deep); font-size: .78rem; font-weight: 700;
	letter-spacing: .22em; text-transform: uppercase; margin-top: 0; margin-bottom: 12px;
}
.section h2 {
	font-family: var(--serif); font-weight: 500; color: var(--ink);
	font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin-top: 0; margin-bottom: 28px;
}
.section p { margin-top: 0; margin-bottom: 1.2em; color: var(--ink-soft); }
.section p.lead { font-family: var(--serif); font-size: 1.5rem; line-height: 1.5; color: var(--ink); }
.section em { color: var(--ink); }
.section .wp-block-separator.divider {
	width: 48px; height: 2px; background: var(--sun); border: 0; opacity: 1;
	margin-top: 0; margin-bottom: 28px; margin-left: auto; margin-right: auto;
}
.section:not(.contact) .wp-block-separator.divider { margin-left: max(0px, calc((100% - var(--measure)) / 2)) !important; }
.section p.note { border-left: 3px solid var(--sun); padding: 4px 0 4px 20px; font-size: .95rem; font-style: italic; }
.section .wp-block-buttons { margin-top: 1.6em; }

/* Quote band */
.wp-block-group.band { background: var(--dusk); text-align: center; padding: clamp(64px, 10vw, 110px) 16px; }
.band .band-quote {
	margin: 0 auto; max-width: 760px; color: #f7ecdf;
	font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.35;
}

/* Contact */
.section.contact { text-align: center; }
.section.contact > * { max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer {
	text-align: center; padding: 32px 16px; font-size: .85rem;
	color: var(--ink-soft); border-top: 1px solid var(--line);
}

/* ---------- Other pages ---------- */
.page-content { padding: 140px 16px 80px; }
.page-content .wrap { max-width: var(--measure); margin: 0 auto; }

/* ---------- Editor tweaks ---------- */
.editor-styles-wrapper { background: var(--sand); font-family: var(--sans); color: var(--ink); }

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 720px) {
	body { font-size: 17px; }
	.menu-toggle { display: block; }
	.nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; gap: 0; background: var(--sand); box-shadow: 0 8px 20px rgba(0,0,0,.08);
	}
	.nav.open { display: flex; }
	.nav a { color: var(--ink) !important; padding: 14px 24px; border-top: 1px solid var(--line); }
}
