/*
Theme Name: Fontoniko
Theme URI: https://fontoniko.com
Author: Fontoniko Technologies
Description: Block theme for Fontoniko Technologies — remote environment monitoring. Graphite and safety-orange palette, Barlow / Barlow Condensed / IBM Plex Mono, and editable homepage sections (hero with live readings, capabilities, pricing and more).
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fontoniko
Tags: full-site-editing, block-patterns, custom-colors, editor-style, one-column, wide-blocks
*/

/* ---------------------------------------------------------------------------
   Block styles (picked in the editor sidebar under "Styles")
   ------------------------------------------------------------------------ */

/* Paragraph → Eyebrow: small uppercase label above a heading */
.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}
.is-style-eyebrow:not(.has-text-color) {
	color: var(--wp--preset--color--steel);
}

/* Paragraph → Placeholder: marks copy that must be replaced before launch */
.is-style-placeholder {
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
}
.is-style-placeholder:not(.has-text-color) {
	color: var(--wp--preset--color--slate);
}
.is-style-placeholder::before {
	content: "Placeholder";
	display: inline-block;
	margin-right: 10px;
	padding: 3px 8px;
	background: var(--wp--preset--color--signal-amber);
	color: var(--wp--preset--color--graphite);
	font-size: 10px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	vertical-align: middle;
}

/* Paragraph → Tag: small outlined label, e.g. "Coming soon" */
.is-style-tag {
	width: fit-content;
	padding: 3px 8px;
	border: 1px solid var(--wp--preset--color--steel);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}
.is-style-tag:not(.has-text-color) {
	color: var(--wp--preset--color--slate);
}

/* List → Dash: em-dash bullets used on the pricing cards */
.wp-block-list.is-style-dash {
	list-style: none;
	padding-left: 0;
}
.wp-block-list.is-style-dash > li::before {
	content: "\2014\00a0";
}

/* Outline buttons: no orange fill on hover */
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: transparent;
	opacity: 0.75;
}

/* ---------------------------------------------------------------------------
   Layout helpers used by the patterns
   ------------------------------------------------------------------------ */

/* Wordmark: orange bar beside site title + tagline */
.fon-brand {
	gap: 3px;
}

/* Pricing cards: push the button to the bottom so both cards line up */
.fon-price-card > .wp-block-list {
	flex: 1 1 auto;
}

/* Live readings panel: never wrap the value under the status */
.fon-reading {
	flex-wrap: nowrap !important;
}

/* Header: the nav button gives way to the hamburger on phones */
@media (max-width: 600px) {
	.fon-header-cta {
		display: none !important;
	}
}

/* Navigation overlay (phone menu) in brand colours */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--graphite) !important;
	color: var(--wp--preset--color--canvas) !important;
}

/* Hero buttons stack full width on phones, like the mockup */
@media (max-width: 600px) {
	.fon-hero-buttons {
		flex-direction: column;
		align-items: stretch !important;
	}
	.fon-hero-buttons > .wp-block-button {
		width: 100%;
	}
	.fon-hero-buttons .wp-block-button__link {
		width: 100%;
	}
}

/* Header, page and footer sit flush: each section carries its own padding */
:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

/* Sections linked from the menu stop clear of the top edge */
:where(.wp-site-blocks) [id] {
	scroll-margin-top: 24px;
}
