/* =========================================================================
   STAZA DESIGN SYSTEM
   Sleek, minimalist cycling-brand aesthetic (Gobik / Rapha / PNS family).
   Monochrome ink + off-white, one restrained accent, modern sans,
   generous whitespace, image-led, thin rules, restrained buttons.
   ========================================================================= */

:root {
	/* Palette */
	--staza-ink:        #111214;   /* near-black text / dark sections */
	--staza-ink-soft:   #3a3d42;   /* secondary text */
	--staza-muted:      #767b83;   /* captions, meta */
	--staza-line:       #e4e2dd;   /* thin rules / borders */
	--staza-paper:      #ffffff;   /* base background */
	--staza-stone:      #f4f2ee;   /* off-white section background */
	--staza-stone-2:    #eceae4;   /* alt stone */
	--staza-accent:     #d64b2a;   /* single warm accent (terracotta / road-clay) */
	--staza-accent-ink: #ffffff;

	/* Type */
	--staza-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Rhythm */
	--staza-maxw: 1200px;
	--staza-gutter: clamp(1.25rem, 4vw, 3rem);
	--staza-section-y: clamp(4rem, 9vw, 8rem);
}

/* ---- Base typography ---------------------------------------------------- */
body,
.ast-container,
.entry-content {
	font-family: var(--staza-font);
	color: var(--staza-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body {
	font-size: 17px;
	line-height: 1.7;
	letter-spacing: 0.01em;
	background: var(--staza-paper);
}

h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--staza-font);
	color: var(--staza-ink);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.08;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--staza-ink-soft); }

/* Eyebrow / label utility (uppercase small caps) — usable as a class in blocks */
.staza-eyebrow {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--staza-accent);
	display: inline-block;
	margin-bottom: 1rem;
}

/* Big lead paragraph utility */
.staza-lead { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--staza-ink); line-height: 1.5; }

/* ---- Links ------------------------------------------------------------- */
a { color: var(--staza-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--staza-accent); }

/* ---- Buttons (restrained: solid ink or outline) ------------------------ */
.wp-block-button__link,
.ast-button,
.button,
button.staza-appt-btn,
button.staza-br-btn {
	font-family: var(--staza-font);
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 0 !important;           /* sharp, editorial */
	padding: 0.95rem 2.1rem;
	font-size: 0.98rem;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
	border: 1.5px solid var(--staza-ink);
}
/* Default filled = ink */
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
button.staza-appt-btn,
button.staza-br-btn {
	background: var(--staza-ink);
	color: #fff;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
button.staza-appt-btn:hover,
button.staza-br-btn:hover {
	background: var(--staza-accent);
	border-color: var(--staza-accent);
	color: #fff;
}
/* Outline style */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--staza-ink);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--staza-ink);
	color: #fff;
}

/* Hero buttons: same style, white border, same size on mobile. */
.staza-hero .wp-block-button .wp-block-button__link {
	background: rgba(17,18,20,0.55) !important;
	color: #fff !important;
	border: 1.5px solid rgba(255,255,255,0.8) !important;
}
.staza-hero .wp-block-button .wp-block-button__link:hover {
	background: var(--staza-accent) !important;
	border-color: var(--staza-accent) !important;
}
.staza-hero .wp-block-buttons {
	gap: 1rem;
}
@media (max-width: 480px) {
	.staza-hero .wp-block-buttons {
		flex-direction: column !important;
		align-items: stretch !important;
	}
	.staza-hero .wp-block-button {
		width: 100% !important;
	}
	.staza-hero .wp-block-button .wp-block-button__link {
		display: block !important;
		text-align: center !important;
		width: 100% !important;
	}
}

/* ---- Section helpers (use as group classes in block markup) ------------ */
.staza-section { padding-top: var(--staza-section-y); padding-bottom: var(--staza-section-y); }
.staza-stone   { background: var(--staza-stone); }
.staza-dark    { background: var(--staza-ink); }
.staza-dark, .staza-dark p, .staza-dark h1, .staza-dark h2, .staza-dark h3, .staza-dark h4 { color: #fff; }
.staza-dark p { color: #d9d9d9; }

/* Constrain + center inner content width */
.staza-wrap { max-width: var(--staza-maxw); margin-left: auto; margin-right: auto; padding-left: var(--staza-gutter); padding-right: var(--staza-gutter); }

/* Thin top rule used to separate content, cycling-brand style */
.staza-rule { border: 0; border-top: 1px solid var(--staza-line); margin: 0; }

/* ---- Astra header / nav: make it clean & minimal ----------------------- */
.main-header-bar { border-bottom: 1px solid var(--staza-line); box-shadow: none !important; }
.main-header-menu a,
.ast-header-break-point .main-header-menu a {
	font-weight: 500;
	letter-spacing: 0.02em;
	font-size: 0.95rem;
	text-transform: uppercase;
}
.main-header-menu a:hover { color: var(--staza-accent); }

/* Text logo ("staza.cc") styled as a proper wordmark */
.site-title,
.ast-site-title-wrap .site-title {
	font-weight: 800 !important;
	letter-spacing: -0.03em;
	font-size: 1.6rem !important;
	text-transform: lowercase;
}
.site-title a { color: var(--staza-ink); }
/* On the transparent header over dark heroes, make the wordmark white */
.ast-theme-transparent-header .site-title a { color: #fff; }
.ast-theme-transparent-header .site-title a:hover { color: var(--staza-accent); }

/* Force the text wordmark instead of any uploaded image logo.
   Hides the image logo and reveals the site title text even if a custom
   logo is still set in the Customizer. */
.custom-logo,
.custom-logo-link img,
.site-logo-img img {
	display: none !important;
}

/* Injected "staza.cc" wordmark (added via plugin JS) */
.staza-wordmark {
	display: inline-block;
	font-family: var(--staza-font);
	font-weight: 800;
	font-size: 1.7rem;
	letter-spacing: -0.03em;
	text-transform: lowercase;
	text-decoration: none;
	color: var(--staza-ink);
	line-height: 1;
}
.staza-wordmark:hover { color: var(--staza-accent); }
/* Terracotta dot — always visible regardless of header context */
.staza-wordmark-dot { color: var(--staza-accent); }

/* ---- Full-bleed hero utility ------------------------------------------- */
.staza-hero {
	min-height: 82vh;
	display: flex;
	align-items: flex-end;      /* content sits in lower portion */
	background-size: cover;
	background-position: center;
	color: #fff;
	position: relative;
	/* Top padding for visual breathing room (header no longer overlays — see
	   .ast-theme-transparent-header .site-header override above). */
	padding-top: clamp(7rem, 14vh, 11rem);
	/* Default hero image (Costa Blanca coast). Override per-page by adding a
	   modifier class, e.g. .staza-hero--about, defined below. */
	background-image: url('https://staza.cc/wp-content/uploads/2026/07/pexels-ronyescobarhn-2154459403-34975877.jpg');
	background-color: #1e3a5f; /* fallback while image loads / if blocked */
}
.staza-hero::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.60) 100%);
	z-index: 0;
}
.staza-hero > * { position: relative; z-index: 1; }
.staza-hero h1, .staza-hero p { color: #fff; }

/* Per-page hero image variants (add class alongside .staza-hero) */
.staza-hero--home  { background-image: url('https://staza.cc/wp-content/uploads/2026/07/pexels-ronyescobarhn-2154459403-34975877.jpg'); }
.staza-hero--about { background-image: url('https://staza.cc/wp-content/uploads/2026/07/pexels-emilio-sanchez-hernandez-285921208-13392015.jpg'); }
.staza-hero--services { background-image: url('https://staza.cc/wp-content/uploads/2026/07/pexels-emilio-sanchez-hernandez-285921208-29947889.jpg'); }
.staza-hero--contact { background-image: url('https://staza.cc/wp-content/uploads/2026/07/IMG_3247-scaled.jpg'); }

/* Inner pages (About/Services/Contact) — center hero text vertically and use a
   shorter hero so the heading/intro is readable immediately, without scrolling.
   Minimal top padding: header is now position:relative so no nav clearance needed. */
.staza-hero--about,
.staza-hero--services,
.staza-hero--contact {
	min-height: 60vh;
	align-items: center;
	padding-top: clamp(0.5rem, 2vh, 1.5rem);
	padding-bottom: clamp(2rem, 5vh, 4rem);
}

/* ---- Images: crisp, no rounded corners, subtle ------------------------- */
.entry-content img, .wp-block-image img { border-radius: 0; }

/* ---- Cards / columns ---------------------------------------------------- */
.wp-block-columns { gap: clamp(1.25rem, 3vw, 2.5rem); }

/* ---- Remove default page title on our built pages (we design our own) --- */
/* (Astra: set per-page in editor; kept here as an opt-in class) */
.staza-no-title .ast-single-post .entry-title,
.staza-notitle .entry-title { display: none; }

/* Our page content builds its own hero/titles, so hide Astra's default page
   title header AND its default content padding on all static pages, so the
   full-bleed hero sits flush at the top (no "Services"/"Contact" text above). */
.page .entry-header,
.page .ast-single-post-title,
.page-template-default .entry-header {
	display: none !important;
}
/* Bulletproof: hide the page title header wherever a Staza hero is used. */
body.page .site-main .entry-header,
body.page .ast-article-single > .entry-header,
body.page header.entry-header,
body.page .entry-title {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}
/* Astra controls the page title via a CSS variable (--page-title-display).
   Override it to none on pages so the title never renders above our hero. */
body.page,
body.page-template-default {
	--page-title-display: none !important;
}
body.page .entry-title { display: none !important; }
.page .site-content > .ast-container {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.page .content-area .entry-content,
.page .content-area {
	margin-top: 0 !important;
}
.page .site-content {
	padding-top: 0 !important;
}
/* Let full-width blocks truly span the viewport inside Astra's content area */
.page .entry-content > .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
}

/* ---- Footer tidy -------------------------------------------------------- */
.site-footer, .ast-small-footer { background: var(--staza-ink); color: #cfcfcf; text-align: center; }
.site-footer a { color: #fff; }
.site-footer .ast-footer-site-title,
.site-footer .copyright,
.ast-small-footer-section,
.site-footer .ast-footer-section,
.site-footer .ast-container {
	text-align: center !important;
}

/* ---- Responsive tightening --------------------------------------------- */
@media (max-width: 768px) {
	body { font-size: 16px; }
	.staza-hero { min-height: 70vh; }
}

/* ---- Mobile hamburger: kill any yellow circle, keep icon dark ----------- */
.ast-mobile-menu-trigger-fill,
.ast-mobile-menu-trigger-minimal,
[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-fill,
[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
}
.ast-mobile-menu-trigger-fill .menu-toggle-icon,
.ast-mobile-menu-trigger-minimal .menu-toggle-icon,
.ast-mobile-menu-trigger-fill svg,
.ast-mobile-menu-trigger-minimal svg {
	fill: var(--staza-ink) !important;
	color: var(--staza-ink) !important;
}
.ast-mobile-menu-trigger-fill .menu-toggle-icon::before,
.ast-mobile-menu-trigger-fill .menu-toggle-icon::after,
.ast-mobile-menu-trigger-minimal .menu-toggle-icon::before,
.ast-mobile-menu-trigger-minimal .menu-toggle-icon::after {
	background: var(--staza-ink) !important;
}

/* ---- Solid white header on all pages (no gap between bar and hero) ------ */
.ast-theme-transparent-header .main-header-bar,
.ast-theme-transparent-header .ast-above-header,
.ast-theme-transparent-header .ast-below-header {
	background-color: #ffffff !important;
	border-bottom: 1px solid var(--staza-line);
}
.ast-theme-transparent-header .site-header {
	position: relative !important;
}
/* Dark text/wordmark/switcher */
.ast-theme-transparent-header .main-header-menu a,
.ast-theme-transparent-header .staza-wordmark,
.ast-theme-transparent-header .staza-langs,
.ast-theme-transparent-header .staza-lang {
	color: var(--staza-ink) !important;
}
.ast-theme-transparent-header .main-header-menu a:hover,
.ast-theme-transparent-header .staza-wordmark:hover,
.ast-theme-transparent-header .staza-lang:hover {
	color: var(--staza-accent) !important;
}
/* ALSO cover non-transparent-header pages (Astra may limit to front page) */
.site-header {
	position: relative !important;
}
.main-header-bar {
	background-color: #ffffff !important;
	border-bottom: 1px solid var(--staza-line);
}
/* Strip any Astra default top padding/margin on content that causes header gap */
.site-content,
.ast-container,
.ast-row,
.ast-col-sm-12,
.ast-article-single,
.entry-content,
.content-area,
.wp-block-group {
	padding-top: 0 !important;
	margin-top: 0 !important;
}
/* Inner page hero: ensure no top gap (header is now normal flow) */
.staza-hero--about,
.staza-hero--services,
.staza-hero--contact {
	margin-top: 0 !important;
	padding-top: clamp(0.5rem, 2vh, 1.5rem) !important;
}

/* ---- Language switcher (dropdown) -------------------------------------- */
.staza-lang-wrap { position: relative; display: inline-block; }
.staza-langs--dropdown { position: relative; display: inline-block; font-size: 0.85rem; }
.staza-lang-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: transparent;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 2px;
	padding: 0.4rem 0.7rem;
	font-family: var(--staza-font);
	font-weight: 600;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	cursor: pointer;
	color: inherit;
	line-height: 1;
}
.staza-lang-toggle:hover { border-color: var(--staza-accent); color: var(--staza-accent); }
.staza-lang-globe { font-size: 0.95rem; }
.staza-lang-caret { font-size: 0.7rem; opacity: 0.7; }
.staza-flag {
	font-size: 1.05rem;
	line-height: 1;
	display: inline-block;
	vertical-align: middle;
}
.staza-lang-list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 160px;
	background: #fff;
	border: 1px solid var(--staza-line);
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	list-style: none !important;
	margin: 0 !important;
	padding: 0.35rem 0 !important;
	padding-left: 0 !important;
	display: none !important;
	z-index: 9999;
}
.staza-langs--dropdown.is-open .staza-lang-list { display: block !important; }
.staza-lang-list li { margin: 0 !important; list-style: none !important; }
.staza-lang-list .staza-lang {
	display: block;
	padding: 0.55rem 1rem;
	text-decoration: none;
	color: var(--staza-ink);
	font-weight: 500;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.staza-lang-list .staza-lang:hover { background: var(--staza-stone); color: var(--staza-accent); }
.staza-lang-list .staza-lang-active { color: var(--staza-accent); font-weight: 700; }
/* All pages: dark toggle on solid white header */
.staza-lang-toggle { color: var(--staza-ink); border-color: rgba(0,0,0,0.15); }
.staza-lang-wrap--mobile .staza-lang-toggle { touch-action: manipulation; }

/* ---- Mobile: ensure wordmark + switcher are visible ------------------- */
@media (max-width: 921px) {
	/* Make sure the wordmark shows in the mobile header */
	.ast-mobile-header-wrap .staza-wordmark,
	.site-branding .staza-wordmark {
		display: inline-block !important;
		font-size: 1.4rem;
	}
	/* Keep the mobile header logo dark/visible (mobile header is usually solid) */
	.ast-mobile-header-wrap .staza-wordmark { color: var(--staza-ink); }
	/* Show the language switcher on mobile, aligned right near the toggle */
	.staza-lang-wrap--mobile {
		display: inline-flex !important;
		align-items: center;
		margin-left: auto;
		margin-right: 0.75rem;
	}
	.staza-lang-wrap--mobile .staza-langs { color: var(--staza-ink); }
	.staza-lang-wrap--mobile .staza-lang { opacity: 0.75; }
	.staza-lang-wrap--mobile .staza-lang-active { opacity: 1; }
	/* Mobile dropdown: fixed at top-left, below header, compact */
	.staza-lang-wrap--mobile .staza-lang-list {
		position: fixed;
		top: 56px;
		left: 0.5rem;
		right: auto;
		width: auto;
		min-width: 165px;
		border-radius: 4px;
		box-shadow: 0 6px 20px rgba(0,0,0,0.18);
		z-index: 999999;
	}
	.staza-lang-wrap--mobile .staza-lang-list .staza-lang {
		padding: 0.7rem 1rem;
		font-size: 0.95rem;
		white-space: nowrap;
	}
}
