/*
Theme Name: Marking1on1
Theme URI: https://premierdigitalmarketing.com
Author: Marking1on1
Description: A bold, dark-mode-first WordPress block theme for a Los Angeles digital marketing agency. Built on a charcoal canvas with electric lime accents, designed to generate leads and showcase premier online marketing services for LA small businesses.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: premier-digital
Tags: full-site-editing, block-patterns, dark-mode, one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, blog
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ----------------------------------------------------------------
   0. Font imports
   ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ----------------------------------------------------------------
   1. Root & body resets
   ---------------------------------------------------------------- */
:root,
body,
.wp-site-blocks {
	overflow: visible;
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
}

body {
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
}

/* Remove default top margin on the first child of wp-site-blocks */
.wp-site-blocks > *:first-child {
	margin-top: 0;
}

/* ----------------------------------------------------------------
   2. Sticky header
   ---------------------------------------------------------------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Backdrop pseudo for scrolled state – keeps the header itself free of
   backdrop-filter so the mobile nav overlay position:fixed still targets
   the viewport. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transition: background 0.4s ease, box-shadow 0.4s ease;
}

body.is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	background: var(--wp--preset--color--surface);
	box-shadow: 0 1px 0 var(--wp--preset--color--border);
}

/* ----------------------------------------------------------------
   3. Typography polish
   ---------------------------------------------------------------- */

/* Body prose */
p {
	line-height: 1.65;
	color: var(--wp--preset--color--text);
}

/* Heading letter-spacing tightening for display sizes */
h1, .wp-block-post-title {
	letter-spacing: -0.03em;
}

h2 {
	letter-spacing: -0.02em;
}

h3 {
	letter-spacing: -0.015em;
}

/* Small-caps utility for labels / kickers */
.has-x-small-font-size {
	letter-spacing: 0.1em;
}

/* Strong / bold inherits heading color for emphasis */
strong, b {
	color: var(--wp--preset--color--heading);
	font-weight: 700;
}

/* ----------------------------------------------------------------
   4. Link styles
   ---------------------------------------------------------------- */
a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	text-underline-offset: 0.2em;
	transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
	color: var(--wp--preset--color--heading);
}

/* Underline links inside prose (paragraphs, lists) */
.entry-content p a,
.wp-block-post-content p a,
.wp-block-group p a,
.wp-block-column p a {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.entry-content p a:hover,
.wp-block-post-content p a:hover,
.wp-block-group p a:hover,
.wp-block-column p a:hover {
	text-decoration-color: var(--wp--preset--color--heading);
}

/* Navigation link active state accent underline */
.wp-block-navigation a.current-menu-item,
.wp-block-navigation a[aria-current="page"] {
	color: var(--wp--preset--color--accent);
	position: relative;
}

.wp-block-navigation a.current-menu-item::after,
.wp-block-navigation a[aria-current="page"]::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--wp--preset--color--accent);
}

/* ----------------------------------------------------------------
   5. Button styles
   ---------------------------------------------------------------- */
.wp-block-button .wp-block-button__link,
.wp-element-button {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 0;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	line-height: 1.4;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible,
.wp-element-button:hover,
.wp-element-button:focus-visible {
	background-color: var(--wp--preset--color--heading);
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--heading);
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--heading);
	border-color: var(--wp--preset--color--border);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	background-color: transparent;
}

/* ----------------------------------------------------------------
   6. Image treatments
   ---------------------------------------------------------------- */
.wp-block-image img,
.wp-block-post-featured-image img,
.wp-block-cover img {
	border-radius: 0;
}

.wp-block-image img,
.wp-block-post-featured-image img {
	filter: brightness(0.9) contrast(1.05);
	transition: filter 0.3s ease, transform 0.3s ease;
}

.wp-block-image:hover img,
.wp-block-post-featured-image:hover img {
	filter: brightness(1) contrast(1.1);
}

/* Featured image in post cards – subtle scale on hover */
.wp-block-post-featured-image {
	overflow: hidden;
}

.wp-block-post-featured-image img {
	transition: transform 0.5s ease, filter 0.5s ease;
}

.wp-block-post-featured-image:hover img {
	transform: scale(1.03);
}

/* ----------------------------------------------------------------
   7. Separator / HR
   ---------------------------------------------------------------- */
.wp-block-separator {
	border-color: var(--wp--preset--color--border);
	opacity: 1;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	max-width: 120px;
}

.wp-block-separator.is-style-wide {
	max-width: 100%;
}

/* ----------------------------------------------------------------
   8. Blockquote
   ---------------------------------------------------------------- */
.wp-block-quote {
	border-left: 3px solid var(--wp--preset--color--accent);
	padding-left: var(--wp--preset--spacing--40);
	font-style: italic;
}

.wp-block-quote cite,
.wp-block-quote footer {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-small);
	font-style: normal;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
	display: block;
	margin-top: var(--wp--preset--spacing--20);
}

/* ----------------------------------------------------------------
   9. Code block
   ---------------------------------------------------------------- */
.wp-block-code {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--small);
	padding: var(--wp--preset--spacing--30);
}

code,
kbd {
	font-size: 0.9em;
	color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--surface);
	padding: 0.15em 0.4em;
	border-radius: 0;
}

/* ----------------------------------------------------------------
   10. Lists
   ---------------------------------------------------------------- */
.wp-block-list {
	padding-left: 1.25em;
}

.wp-block-list li {
	margin-bottom: 0.35em;
}

.wp-block-list li::marker {
	color: var(--wp--preset--color--accent);
}

/* ----------------------------------------------------------------
   11. Tables
   ---------------------------------------------------------------- */
.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	text-align: left;
}

.wp-block-table th {
	background-color: var(--wp--preset--color--surface-alt);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	color: var(--wp--preset--color--heading);
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
}

.wp-block-table td {
	color: var(--wp--preset--color--text);
}

/* ----------------------------------------------------------------
   12. Form / Input styles
   ---------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	width: 100%;
	transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
	border-color: var(--wp--preset--color--accent);
	outline: none;
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent);
}

::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

/* ----------------------------------------------------------------
   13. Post meta & taxonomy labels
   ---------------------------------------------------------------- */
.wp-block-post-date,
.wp-block-post-terms {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.wp-block-post-terms a {
	text-decoration: none;
	color: var(--wp--preset--color--accent);
}

.wp-block-post-terms a:hover {
	color: var(--wp--preset--color--heading);
}

/* ----------------------------------------------------------------
   14. Post excerpt – "Read More" link styling
   ---------------------------------------------------------------- */
.wp-block-post-excerpt__more-link {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	transition: color 0.2s ease, gap 0.2s ease;
}

.wp-block-post-excerpt__more-link:hover {
	color: var(--wp--preset--color--heading);
	gap: 0.7em;
}

.wp-block-post-excerpt__more-link::after {
	content: "\2192";
	display: inline-block;
}

/* ----------------------------------------------------------------
   15. Pagination
   ---------------------------------------------------------------- */
.wp-block-query-pagination {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	gap: var(--wp--preset--spacing--20);
}

.wp-block-query-pagination a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	padding: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--border);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-block-query-pagination a:hover {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--accent);
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	padding: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--accent);
}

/* ----------------------------------------------------------------
   16. Search block
   ---------------------------------------------------------------- */
.wp-block-search__input {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
}

.wp-block-search__button {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.wp-block-search__button:hover {
	background-color: var(--wp--preset--color--heading);
	border-color: var(--wp--preset--color--heading);
	color: var(--wp--preset--color--contrast);
}

/* ----------------------------------------------------------------
   17. Sidebar widgets
   ---------------------------------------------------------------- */
.wp-block-latest-posts,
.wp-block-categories,
.wp-block-archives {
	list-style: none;
	padding-left: 0;
}

.wp-block-latest-posts li,
.wp-block-categories li,
.wp-block-archives li {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: var(--wp--preset--spacing--20);
}

.wp-block-latest-posts li:last-child,
.wp-block-categories li:last-child,
.wp-block-archives li:last-child {
	border-bottom: none;
}

.wp-block-latest-posts a,
.wp-block-categories a,
.wp-block-archives a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: color 0.2s ease;
}

.wp-block-latest-posts a:hover,
.wp-block-categories a:hover,
.wp-block-archives a:hover {
	color: var(--wp--preset--color--accent);
}

/* Category / archive count badges */
.wp-block-categories li a + span,
.wp-block-archives li a + span {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
}

/* ----------------------------------------------------------------
   18. Tag cloud
   ---------------------------------------------------------------- */
.wp-block-tag-cloud a {
	display: inline-block;
	background-color: var(--wp--preset--color--surface-alt);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--border);
	padding: 0.25em 0.6em;
	margin: 0.2em;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--x-small) !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-block-tag-cloud a:hover {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--accent);
}

/* ----------------------------------------------------------------
   19. Cover block polish
   ---------------------------------------------------------------- */
.wp-block-cover {
	border-radius: 0;
}

.wp-block-cover .wp-block-cover__inner-container {
	max-width: var(--wp--style--global--wide-size, 1280px);
}

/* ----------------------------------------------------------------
   20. Hero-specific styles
   ---------------------------------------------------------------- */

/* Hero label / kicker badge */
.hero-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--wp--preset--color--accent);
	background: rgba(198, 255, 0, 0.08);
	border: 1px solid rgba(198, 255, 0, 0.2);
	padding: 0.45rem 1rem;
	width: fit-content;
}

.hero-label-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	display: inline-block;
}

/* Lime highlight text in headings */
.has-accent-color,
.highlight-lime {
	color: var(--wp--preset--color--accent);
}

/* Hero image frame decorative borders */
.hero-image-frame {
	position: relative;
}

.hero-image-frame::before {
	content: "";
	position: absolute;
	top: -12px;
	left: -12px;
	right: 12px;
	bottom: 12px;
	border: 1px solid rgba(198, 255, 0, 0.15);
	z-index: -1;
	pointer-events: none;
}

.hero-image-frame::after {
	content: "";
	position: absolute;
	bottom: -8px;
	right: -8px;
	width: 60%;
	height: 60%;
	background: linear-gradient(135deg, var(--wp--preset--color--accent-dark) 0%, rgba(26, 10, 61, 0.3) 100%);
	z-index: -1;
	pointer-events: none;
}

/* Hero stat callout */
.hero-stat {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

.hero-stat-number {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 900;
	font-size: var(--wp--preset--font-size--xx-large);
	color: var(--wp--preset--color--accent);
	line-height: 1;
}

.hero-stat-label {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--muted);
	margin-top: 0.3rem;
}

/* Hero bottom bar */
.hero-bottom-bar {
	border-top: 1px solid var(--wp--preset--color--border);
}

.hero-badge {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--muted);
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
}

/* Grid pattern background */
.hero-grid-bg {
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 60px 60px;
}

/* Glow effects for hero */
.glow-lime {
	background: radial-gradient(circle, rgba(198, 255, 0, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.glow-purple {
	background: radial-gradient(circle, rgba(26, 10, 61, 0.3) 0%, transparent 70%);
	pointer-events: none;
}

/* ----------------------------------------------------------------
   21. Service cards
   ---------------------------------------------------------------- */
.service-card {
	background-color: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--40);
	transition: border-color 0.3s ease, transform 0.2s ease;
}

.service-card:hover {
	border-color: var(--wp--preset--color--accent);
	transform: translateY(-2px);
}

.service-card img {
	filter: brightness(0.85) contrast(1.1);
	transition: filter 0.3s ease;
}

.service-card:hover img {
	filter: brightness(1) contrast(1.1);
}

/* ----------------------------------------------------------------
   22. Post cards in grid
   ---------------------------------------------------------------- */
.post-card {
	background-color: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--wp--preset--color--border);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 4px 24px rgba(198, 255, 0, 0.06);
}

/* ----------------------------------------------------------------
   23. Focus states
   ---------------------------------------------------------------- */
*:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* ----------------------------------------------------------------
   24. Selection
   ---------------------------------------------------------------- */
::selection {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

/* ----------------------------------------------------------------
   25. Mobile hamburger overlay
   ---------------------------------------------------------------- */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
}

/* ----------------------------------------------------------------
   26. Scrollbar styling
   ---------------------------------------------------------------- */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--wp--preset--color--surface);
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--border);
	border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--muted);
}

/* ----------------------------------------------------------------
   27. Comments
   ---------------------------------------------------------------- */
.wp-block-post-comments-form textarea,
.wp-block-post-comments-form input {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
}

.wp-block-post-comments-form textarea:focus,
.wp-block-post-comments-form input:focus {
	border-color: var(--wp--preset--color--accent);
}

.comment-reply-link {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--accent);
}

/* ----------------------------------------------------------------
   28. Captions
   ---------------------------------------------------------------- */
figcaption,
.wp-element-caption {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-top: var(--wp--preset--spacing--20);
}

/* ----------------------------------------------------------------
   29. Footer credit styling
   ---------------------------------------------------------------- */
.footer-credit a {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.footer-credit a:hover {
	color: var(--wp--preset--color--heading);
}

/* ----------------------------------------------------------------
   30. Accent borders – decorative top stripe for sections
   ---------------------------------------------------------------- */
.accent-top-border {
	border-top: 3px solid var(--wp--preset--color--accent);
}

/* ----------------------------------------------------------------
   31. Gradient overlays
   ---------------------------------------------------------------- */
.gradient-purple-bottom::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40%;
	background: linear-gradient(to top, var(--wp--preset--color--accent-dark), transparent);
	pointer-events: none;
}

/* ----------------------------------------------------------------
   Loop layout utilities
   ---------------------------------------------------------------- */
/* These classes are wired to the wp:query blocks emitted by content/pages and
   templates. Do not rename. Tune colours and spacing to theme.json tokens. */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}
.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: var(--wp--preset--spacing--30);
}
.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--border);
	opacity: 0.4;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: '';
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	background: var(--wp--preset--color--background);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}
@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}

/* ----------------------------------------------------------------
   Responsive adjustments
   ---------------------------------------------------------------- */
@media (max-width: 781px) {
	/* Stack hero columns on tablet and below */
	.hero-image-frame::before,
	.hero-image-frame::after {
		display: none;
	}

	/* Reduce heading sizes on small screens for breathing room */
	h1 {
		letter-spacing: -0.02em;
	}

	/* Service cards stack with reduced gap */
	.service-card {
		padding: var(--wp--preset--spacing--30);
	}
}

@media (max-width: 600px) {
	/* Compact button padding on mobile */
	.wp-block-button .wp-block-button__link,
	.wp-element-button {
		padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
		font-size: var(--wp--preset--font-size--x-small);
	}

	/* Hero badges wrap nicely */
	.hero-badge {
		font-size: 0.55rem;
		padding: 0.25rem 0.5rem;
	}
}