/*
Theme Name: Midnight Ski
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: midnight-ski
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap between the
   template's top-level sections (header part, main, footer part). Zero it so
   sections butt edge-to-edge and own their vertical rhythm via padding. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author still clear the header and footer. Full-bleed templates
   opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === global === */
:root {
	/* brand */
	--orange: #FF6B35;
	--night: #0F2435;
	--night-2: #1A3247;
	--paper: #F4F7FA;
	--surface: #FFFFFF;
	--ice: #DCE6ED;
	--ice-2: #D9E3EB;
	--ink: #0F2435;
	--ink-soft: #45586C;
	--white: #FFFFFF;

	/* aliases to keep block-driven CSS reading clearly */
	--gold: var( --orange );
	--navy: var( --night );
	--cream: var( --white );
	--mute: var( --ink-soft );
}

.eyebrow {
	font-family: "Inter", sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var( --orange );
	margin-bottom: 1.2rem;
}

.gold-rule {
	width: 2.5rem;
	height: 3px;
	background: var( --orange );
	border: 0;
	margin: 2rem 0 0;
}

.site-content {
	position: relative;
	z-index: 2;
}

/* Full-bleed bands butt edge-to-edge inside page content. */
.wp-block-post-content > * + *,
.wp-block-post-content > :first-child {
	margin-block-start: 0;
}

h2.section-title em,
.hero-title em {
	font-style: normal;
	color: var( --orange );
}

/* === header === */
.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: #0F2435;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-brand .wp-block-site-title {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 1.7rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var( --white );
	margin: 0;
}
.site-brand .wp-block-site-title a {
	color: var( --white );
	text-decoration: none;
}
.site-header-nav {
	gap: 0.5rem 1.75rem;
}
/* Compact header: vertical padding is set inline at 8px; horizontal is set
   here (32px desktop, 16px mobile) to avoid touch the global settings. The
   original logo PNG carries transparent whitespace top/bottom, so the brand
   box is fixed to the visible logo height with overflow hidden and the square
   image is sized by height: its transparent part is cropped visually and the
   white artwork appears ~58px (desktop) / ~43px (mobile) tall — no image
   modification, no filters, borders or shadows. */
.site-header {
	padding-left: 32px;
	padding-right: 32px;
}
.site-header .site-brand {
	height: 60px;
	overflow: hidden;
}
.site-header .wp-block-site-logo {
	margin: 0;
	line-height: 0;
}
.site-header .site-brand img.custom-logo {
	display: block;
	width: auto;
	height: 94px;
	max-width: none;
}
@media ( max-width: 782px ) {
	.site-header {
		padding-left: 16px;
		padding-right: 16px;
	}
	.site-header .site-brand {
		height: 44px;
	}
	.site-header .site-brand img.custom-logo {
		height: 68px;
	}
}
/* The responsive nav wrapper inherits the light palette's "background" color;
   keep it invisible against the navy header on desktop. */
.wp-block-navigation__responsive-container {
	background: transparent;
}
/* Mobile navigation drawer: navy, full-screen, links centered. */
@media only screen and (max-width: 781px) {
	.wp-block-navigation__responsive-container {
		background: var( --navy ) !important;
	}
	/* Hamburger (open) icon: the SVG paths have no fill of their own and
	   inherit currentColor, which was navy (--ink) on the navy header and
	   therefore invisible. Force white on the icon itself. Size, position,
	   padding and clickable area are left untouched. */
	.wp-block-navigation__responsive-container-open {
		color: var( --white ) !important;
	}
	.wp-block-navigation__responsive-container-open svg {
		fill: var( --white );
	}
	.wp-block-navigation__responsive-container-open:hover,
	.wp-block-navigation__responsive-container-open:focus {
		color: var( --white ) !important;
	}
	/* Close (X) icon: keep it white and clearly visible in the navy drawer. */
	.wp-block-navigation__responsive-container-close {
		color: var( --white ) !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open {
		position: fixed !important;
		inset: 0 !important;
		z-index: 90 !important;
		width: 100vw !important;
		max-width: none !important;
		height: 100dvh !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 1.6rem !important;
		text-align: center;
		width: 100%;
		transform: translateY( -50% ) !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		text-align: center;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		color: var( --white );
		font-family: "Barlow Condensed", sans-serif;
		font-weight: 600;
		font-size: 2.3rem;
		line-height: 1.1;
		text-decoration: none;
		white-space: normal;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus {
		color: var( --orange );
	}
	.wp-block-navigation__responsive-container-close {
		position: fixed !important;
		top: 1.1rem;
		right: 0.75rem;
		z-index: 1;
		background: transparent;
		border: 0;
		padding: 1rem;
	}
	.wp-block-navigation__responsive-container-close svg {
		fill: var( --white );
	}
}
.site-header .site-nav a {
	font-family: "Inter", sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --white ) !important;
	opacity: 0.9;
	text-decoration: none;
	padding: 0.25rem 0;
	background-image: linear-gradient( var( --orange ), var( --orange ) );
	background-size: 0% 2px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.35s ease, opacity 0.3s ease, color 0.3s ease;
}
.site-header .site-nav a:hover,
.site-header .site-nav a:focus {
	opacity: 1;
	color: var( --white ) !important;
	background-size: 100% 2px;
}

/* === hero === */
.wp-block-cover.hero {
	min-height: 86vh;
}
/* Hero photo overlay: a navy gradient, darkest on the left where the text
   sits and transparent on the right so the photograph stays clearly visible.
   It layers above the image, independently of the text and buttons. */
.wp-block-cover.hero .wp-block-cover__background {
	background-color: transparent !important;
	background-image: linear-gradient(90deg, rgba(15, 36, 53, 0.90) 0%, rgba(15, 36, 53, 0.70) 40%, rgba(15, 36, 53, 0.10) 100%);
	opacity: 1 !important;
}
.wp-block-cover.hero .wp-block-cover__inner-container {
	max-width: 1060px;
	padding: 6rem 0 4rem;
}
.hero-title {
	font-size: clamp(2.75rem, 7vw, 5.4rem);
	line-height: 0.95;
	max-width: 14ch;
	color: var( --white );
}
.hero-inner {
	padding-inline: var( --wp--style--root--padding-left );
}
.hero-lede {
	font-size: 1.2rem;
	line-height: 1.7;
	color: #FFFFFF;
	max-width: 38rem;
}
/* Hero CTA buttons: keep the primary orange/navy; the secondary becomes a
   white outline so it reads on the dark overlay. Scoped to the hero only. */
.wp-block-cover.hero .is-style-outline .wp-element-button,
.wp-block-cover.hero .wp-block-button.is-style-outline .wp-element-button {
	background: transparent;
	color: #FFFFFF;
	border: 1.5px solid #FFFFFF;
}
.wp-block-cover.hero .is-style-outline .wp-element-button:hover,
.wp-block-cover.hero .wp-block-button.is-style-outline .wp-element-button:hover {
	background: #FFFFFF;
	color: #0F2435;
	filter: none;
}
/* On small screens the photo crops differently, so darken across the hero
   to keep the text readable. */
@media ( max-width: 782px ) {
	.wp-block-cover.hero .wp-block-cover__background {
		background-image: linear-gradient(160deg, rgba(15, 36, 53, 0.92) 0%, rgba(15, 36, 53, 0.84) 55%, rgba(15, 36, 53, 0.55) 100%);
	}
}

/* === bands / cards === */
.is-style-card {
	background: var( --surface );
	border: 1px solid var( --ice-2 );
	border-radius: 12px;
	padding: 2rem;
	color: var( --ink );
	box-shadow: 0 1px 2px rgba(15, 36, 53, 0.04);
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.is-style-card:hover {
	border-color: var( --orange );
	box-shadow: 0 14px 34px rgba(15, 36, 53, 0.09);
}
/* Equal-height cards inside a columns row so a longer card doesn't tower. */
.wp-block-columns > .wp-block-column > .is-style-card {
	height: 100%;
}
.card-index {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.06em;
	color: var( --orange );
	margin-bottom: 1rem;
}
.card-title {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1.05;
	margin: 0 0 0.7rem;
	color: var( --ink );
}
.card-text {
	color: var( --ink-soft );
}

/* Navy contrast bands: lighten their own text, keep white cards intact. */
.has-panels-background-color {
	color: var( --white );
}
.has-panels-background-color .eyebrow {
	color: var( --orange );
}
.has-panels-background-color > .wp-block-group > .section-title {
	color: var( --white );
}

/* === footer === */
.site-footer {
	background: var( --night );
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: var( --white );
}
.site-footer .footer-brand .wp-block-site-title {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 1.7rem;
	text-transform: uppercase;
	color: var( --white );
	margin: 0 0 0.4rem;
}
.site-footer .footer-brand .wp-block-site-title a,
.site-footer .footer-brand .wp-block-site-title {
	color: var( --white );
	text-decoration: none;
}
.footer-tagline {
	color: #B9C8D4;
	font-size: 0.95rem;
}
.footer-heading {
	font-family: "Inter", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var( --orange );
	margin: 0 0 1.1rem;
}
.site-footer > .wp-block-group .wp-block-column > p {
	color: #C9D6E1;
}
.site-footer .footer-nav a {
	color: var( --white );
	text-decoration: none;
	background-image: linear-gradient( var( --orange ), var( --orange ) );
	background-size: 0% 2px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.3s ease;
}
.site-footer .footer-nav a:hover,
.site-footer .footer-nav a:focus {
	color: var( --white );
	background-size: 100% 2px;
}
.footer-rule {
	margin: 3.5rem auto 2.5rem;
	background: rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.14);
}
.footer-copy {
	color: #9FB2C0;
	font-size: 0.9rem;
}

/* === contact form === */
.contact-band {
	padding-top: 3rem !important;
	padding-bottom: 3rem !important;
}
.contact-title {
	margin-bottom: 1.25rem;
	color: var( --white );
}
.contact-form-headings {
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}
.wp-block-jetpack-contact-form {
	max-width: 560px;
}
.wp-block-jetpack-contact-form [class*="jetpack/field-"],
.wp-block-jetpack-contact-form .grunion-field-wrap,
.wp-block-jetpack-contact-form .jetpack-contact-form__input-wrapper {
	margin-bottom: 1rem;
}
.wp-block-jetpack-contact-form label {
	display: block;
	color: var( --white );
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form textarea {
	width: 100%;
	max-width: 100%;
	background: var( --white );
	color: var( --ink );
	border: 1px solid rgba(15, 36, 53, 0.18);
	border-radius: 8px;
	padding: 0.6rem 0.9rem;
	font-family: "Inter", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	resize: none;
}
.wp-block-jetpack-contact-form textarea {
	min-height: 0;
	height: 7.5rem;
}
.wp-block-jetpack-contact-form input[type="text"]:focus,
.wp-block-jetpack-contact-form input[type="email"]:focus,
.wp-block-jetpack-contact-form input[type="tel"]:focus,
.wp-block-jetpack-contact-form textarea:focus {
	outline: none;
	border-color: var( --orange );
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}
.wp-block-jetpack-contact-form input::-moz-placeholder,
.wp-block-jetpack-contact-form textarea::-moz-placeholder,
.wp-block-jetpack-contact-form input::placeholder,
.wp-block-jetpack-contact-form textarea::placeholder {
	color: rgba(15, 36, 53, 0.4);
}
.wp-block-jetpack-contact-form .contact-submit {
	margin-top: 0.5rem;
}

/* === page headers === */
.page-title {
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	line-height: 1.02;
	max-width: 18ch;
	margin: 0;
}
.page-lede {
	font-size: 1.2rem;
	line-height: 1.7;
	color: var( --ink-soft );
	max-width: 40rem;
}
.section-title {
	font-size: clamp(2rem, 4.5vw, 3rem);
	line-height: 1.02;
	margin: 0 0 1.4rem;
}
.band {}

/* === framed images === */
.framed img {
	border: 1px solid var( --ice-2 );
	border-radius: 12px;
}

/* === products === */
.product-name {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 1.4rem;
	margin: 1.2rem 0 0.4rem;
	color: var( --ink );
}

/* === price list === */
.price-cat {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1.05;
	color: var( --orange );
	margin: 0 0 1.1rem;
}
.price-tier-head {
	font-family: "Inter", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var( --orange );
	margin: 1.35rem 0 0.7rem;
}
/* Rate tables: one rental day per column above 1024px, a 3-column
   vertical table below it. Typography is Inter for prices, headers,
   durations and dates; Barlow Condensed stays for section/category titles. */
.rates {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	column-gap: 6px;
	align-items: start;
}
.rates .rhead {
	display: none;
}
.rates .rrow {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.rcell {
	font-family: "Inter", sans-serif;
	font-variant-numeric: tabular-nums;
	margin: 0;
	text-align: center;
}
/* rental-day column header */
.rates .rrow .rcell.r-day {
	font-size: 1.05rem;
	font-weight: 600;
	color: var( --ink );
	padding: 0.5rem 0.25rem;
	background: rgba(15, 36, 53, 0.05);
	border-bottom: 2px solid var( --orange );
	border-radius: 6px 6px 0 0;
}
/* current price (SemiBold) */
.rates .rrow .rcell.r-price {
	font-size: 1.05rem;
	font-weight: 600;
	color: var( --ink );
	padding: 0.4rem 0.25rem;
	border-bottom: 1px solid rgba(15, 36, 53, 0.14);
}
/* reference-date price (Medium) */
.rates .rrow .rcell.r-ref {
	font-size: 1rem;
	font-weight: 500;
	color: var( --ink-soft );
	padding: 0.35rem 0.25rem;
}
/* reference-date label — shown per column on desktop only */
.rates .rrow .rcell.r-note {
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var( --ink-soft );
	padding: 0.1rem 0.2rem;
	border-bottom: 1px solid rgba(15, 36, 53, 0.16);
}

@media ( max-width: 1023.98px ) {
	.rates {
		grid-template-columns: repeat(3, 1fr);
		column-gap: 8px;
	}
	.rates .rhead {
		display: contents;
	}
	.rates .rhead .rcell {
		display: block;
		background: #EAF0F5;
		color: var( --ink );
		font-size: 0.58rem;
		font-weight: 700;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		padding: 0.6rem 0.25rem;
		border-bottom: 2px solid var( --orange );
		border-radius: 0;
	}
	.rates .rrow {
		display: contents;
	}
	.rates .rrow .rcell {
		display: block;
		padding: 0.7rem 0.3rem;
		text-align: center;
		font-size: 0.95rem;
		background: none;
		border-bottom: 1px solid rgba(15, 36, 53, 0.1);
		border-radius: 0;
	}
	.rates .rhead .rcell:first-child,
	.rates .rrow .rcell.r-day {
		text-align: left;
	}
	.rates .rrow .rcell.r-day {
		font-weight: 500;
		color: var( --ink );
		text-transform: none;
		letter-spacing: 0;
	}
	.rates .rrow .rcell.r-price {
		font-weight: 600;
		color: var( --ink );
	}
	.rates .rrow .rcell.r-ref {
		font-weight: 500;
		color: var( --ink-soft );
	}
	.rates .rrow .rcell.r-note {
		display: none;
	}
}
.wp-block-table.rt-table + .price-tier-head {
	margin-top: 1.35rem;
}
.band .is-style-card {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}
.band .eyebrow,
.band .section-title,
.band p:not(.rcell) {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}
.is-style-card .price-cat + .wp-block-table.rt-table {
	margin-top: 0.1rem;
}
.kids-band {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	margin-top: 3.5rem;
}
.price-note {
	color: var( --ink-soft );
	font-size: 0.95rem;
	margin-top: 2rem;
}

/* === card links === */
.card-link {
	margin: 1.2rem 0 0;
}
.card-link a,
.site-footer a {
	color: var( --orange );
	text-decoration: none;
	background-image: linear-gradient( var( --orange ), var( --orange ) );
	background-size: 0% 2px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.3s ease, color 0.3s ease;
}
.card-link a:hover,
.card-link a:focus {
	background-size: 100% 2px;
}

/* === buttons === */
.wp-element-button {
	transition: filter 0.3s ease, transform 0.3s ease;
}
.wp-element-button:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}
.is-style-outline .wp-element-button,
.wp-block-button.is-style-outline .wp-element-button {
	background: transparent;
	color: var( --orange );
	border: 1.5px solid var( --orange );
}
.is-style-outline .wp-element-button:hover {
	background: rgba(255, 107, 53, 0.14);
	filter: none;
}

/* === scroll reveal === */
.reveal-init {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-init.is-visible {
	opacity: 1;
	transform: none;
}

@media ( prefers-reduced-motion: reduce ) {
	.reveal-init {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.site-nav a,
	.site-footer .footer-nav a {
		background-size: 0 0;
		transition: none;
	}
	.wp-element-button {
		transition: none;
		transform: none;
	}
	.is-style-card {
		transition: none;
		transform: none;
	}
}

/* === responsive === */
@media ( max-width: 782px ) {
	.hero-title {
		font-size: 2.6rem;
	}
	.wp-block-cover.hero {
		min-height: 72vh;
	}
	.is-style-card {
		padding: 0.875rem;
	}
}

/* === rate tables (Cjenik) === */
/* Two real HTML tables per rate tier: a vertical 3-column table for
   mobile/tablet and a 6-column table (one day per column) for desktop,
   isolated behind media queries so neither layout leaks into the other.
   Inter for prices/headers/durations; Barlow Condensed stays on the
   section and category headings above. */
.wp-block-table.rt-table {
	width: 100%;
	margin: 0;
	font-family: "Inter", sans-serif;
	font-variant-numeric: tabular-nums;
}
.wp-block-table.rt-table table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}
.wp-block-table.rt-table th,
.wp-block-table.rt-table td {
	border: 0;
	box-shadow: none;
	text-align: center;
	vertical-align: middle;
}
.wp-block-table.rt-desktop {
	display: none;
}

/* Mobile & tablet (<1024px): one vertical 3-column table per tier. */
.wp-block-table.rt-mobile th,
.wp-block-table.rt-mobile td {
	padding: 0.7rem 0.4rem;
}
.wp-block-table.rt-mobile th {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var( --ink );
	background: var( --ice );
	border-bottom: 3px solid var( --orange );
}
.wp-block-table.rt-mobile tbody tr {
	border-bottom: 1px solid var( --ice-2 );
}
.wp-block-table.rt-mobile tbody td {
	font-size: 0.95rem;
}
.wp-block-table.rt-mobile tbody td:first-child {
	font-weight: 500;
	color: var( --ink );
}
.wp-block-table.rt-mobile tbody td:nth-child(2) {
	font-weight: 600;
	color: var( --ink );
}
.wp-block-table.rt-mobile tbody td:nth-child(3) {
	font-weight: 500;
	color: var( --ink-soft );
}

/* Desktop (>=1024px): six equal day columns in one horizontal row. */
@media ( min-width: 1024px ) {
	.wp-block-table.rt-mobile {
		display: none;
	}
	.wp-block-table.rt-desktop {
		display: block;
	}
	.wp-block-table.rt-desktop th,
	.wp-block-table.rt-desktop td {
		padding: 0.7rem 0.2rem;
	}
	.wp-block-table.rt-desktop thead th {
		background: var( --ice );
		color: var( --ink );
		font-size: 1rem;
		font-weight: 600;
		border-bottom: 3px solid var( --orange );
	}
	/* Left label column: slightly wider than the day columns, left-aligned. */
	.wp-block-table.rt-desktop thead th:first-child,
	.wp-block-table.rt-desktop tbody td:first-child {
		width: 34%;
		text-align: left;
	}
	.wp-block-table.rt-desktop tbody td {
		text-align: center;
		vertical-align: middle;
	}
	.wp-block-table.rt-desktop tbody td:first-child {
		font-size: 0.72rem;
		font-weight: 600;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		color: var( --ink-soft );
		white-space: normal;
	}
	.wp-block-table.rt-desktop tbody tr:first-child {
		border-bottom: 1px solid var( --ice-2 );
	}
	.wp-block-table.rt-desktop tbody tr:nth-child(2) {
		border-bottom: 1px solid var( --ice-2 );
	}
	/* Current price values: Inter SemiBold. */
	.wp-block-table.rt-desktop tbody tr:first-child td:not( :first-child ) {
		font-size: 1.05rem;
		font-weight: 600;
		color: var( --ink );
	}
	/* Reference price values: Inter Medium, same muted color as their label. */
	.wp-block-table.rt-desktop tbody tr:nth-child(2) td:not( :first-child ) {
		font-size: 1rem;
		font-weight: 500;
		color: var( --ink-soft );
	}
}

/* === service pricing table (Cjenik servisa) === */
/* A single always-3-column table (service / current price / reference price)
   that mirrors the rental tables' look (grey header, orange underline,
   continuous grey dividers, Inter weights) but keeps its own class so it
   never conflicts with the responsive rental table rules. */
.wp-block-table.svc-table {
	width: 100%;
	margin: 0;
	font-family: "Inter", sans-serif;
	font-variant-numeric: tabular-nums;
}
.wp-block-table.svc-table table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}
.wp-block-table.svc-table th,
.wp-block-table.svc-table td {
	border: 0;
	box-shadow: none;
	padding: 0.7rem 0.6rem;
	vertical-align: middle;
	line-height: 1.3;
}
.wp-block-table.svc-table thead th {
	background: var( --ice );
	color: var( --ink );
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	border-bottom: 3px solid var( --orange );
}
.wp-block-table.svc-table thead th:first-child {
	text-align: left;
}
/* Name column wider than the two equal price columns. */
.wp-block-table.svc-table th:first-child,
.wp-block-table.svc-table td:first-child {
	width: 50%;
	text-align: left;
}
.wp-block-table.svc-table th:nth-child(2),
.wp-block-table.svc-table td:nth-child(2),
.wp-block-table.svc-table th:nth-child(3),
.wp-block-table.svc-table td:nth-child(3) {
	width: 25%;
	text-align: center;
}
.wp-block-table.svc-table tbody tr {
	border-bottom: 1px solid var( --ice-2 );
}
.wp-block-table.svc-table tbody tr:last-child {
	border-bottom: 0;
}
.wp-block-table.svc-table tbody td:first-child {
	font-size: 0.95rem;
	font-weight: 500;
	color: var( --ink );
}
/* Current price: Inter SemiBold. */
.wp-block-table.svc-table tbody td:nth-child(2) {
	font-size: 1rem;
	font-weight: 600;
	color: var( --ink );
}
/* Reference price: Inter Medium, muted like the rental reference values. */
.wp-block-table.svc-table tbody td:nth-child(3) {
	font-size: 0.95rem;
	font-weight: 500;
	color: var( --ink-soft );
}
@media ( max-width: 600px ) {
	.wp-block-table.svc-table th,
	.wp-block-table.svc-table td {
		padding: 0.6rem 0.35rem;
	}
	.wp-block-table.svc-table thead th {
		font-size: 0.66rem;
		letter-spacing: 0.02em;
	}
	.wp-block-table.svc-table tbody td:first-child {
		font-size: 0.9rem;
	}
}

/* === rental categories (Najam) === */
/* Centered section heading above the three equal category cards. */
.rental-cats-heading {
	margin-bottom: 1.75rem;
}
/* Category titles inside the white cards: orange accent, sized like card-title. */
.rental-category-title {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1.05;
	margin: 0 0 0.55rem;
	color: var( --orange );
}

/* === rental notice (Najam) === */
/* The notice sits on the dark navy band, so it uses a light ink for contrast. */
.rental-notice {
	font-family: "Inter", sans-serif;
	font-size: 0.9rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	margin-top: 1.6rem;
}
.rental-notice strong {
	font-weight: 700;
	color: var( --white );
}

/* === Homepage gallery ("Galerija") === */
/* Vertical rhythm for the section band; horizontal gutter is set inline to match
   the neighbouring homepage bands. */
.gallery-band {
	padding-top: clamp( 2.5rem, 6vw, 5rem );
	padding-bottom: clamp( 2.5rem, 6vw, 5rem );
}
.gallery-head {
	text-align: center;
	margin-bottom: clamp( 1.5rem, 3vw, 2.25rem );
}
/* Short orange accent under the heading, tying it to the site's accent colour. */
.gallery-head .section-title {
	margin-bottom: 0;
}
.gallery-head .section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin: 0.9rem auto 0;
	border-radius: 2px;
	background: var( --orange );
}
.gallery-head .section-subtitle {
	margin: 1rem 0 0;
	font-size: 1.05rem;
	line-height: 1.5;
	color: var( --ink-soft );
}

/* Grid: four columns on desktop, two on tablet and mobile. */
.wp-block-gallery.home-gallery {
	display: grid !important;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 18px;
	margin: 0;
}
/* Core sizes nested gallery figures with an ID-specificity rule
   (`:not(#individual-image)`), so the tile width must be forced. */
.wp-block-gallery.home-gallery figure.wp-block-image {
	display: block !important;
	width: 100% !important;
	max-width: 100%;
	min-width: 0;
	margin: 0 !important;
}

/* Each tile is a fixed 4:3 frame with rounded, clipped corners so the hover
   zoom stays inside the rounded bounds. */
.home-gallery .wp-lightbox-container {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background: var( --ice );
}
.home-gallery .wp-lightbox-container img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.home-gallery .wp-lightbox-container:hover img {
	transform: scale( 1.05 );
}

/* Subtle dark overlay on hover: above the image, below the icon. */
.home-gallery .wp-lightbox-container::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba( 15, 36, 53, 0.35 );
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}
.home-gallery .wp-lightbox-container:hover::after,
.home-gallery .wp-lightbox-container:focus-within::after {
	opacity: 1;
}

/* Reuse the native lightbox trigger as a small, centered white expand icon. */
.home-gallery .wp-lightbox-container button.lightbox-trigger {
	top: 50% !important;
	right: auto !important;
	left: 50% !important;
	transform: translate( -50%, -50% );
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background-color: rgba( 15, 36, 53, 0.55 ) !important;
	border: none !important;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	z-index: 2;
	opacity: 0;
}
.home-gallery .wp-lightbox-container button.lightbox-trigger svg {
	width: 20px;
	height: 20px;
}
.home-gallery .wp-lightbox-container:hover button.lightbox-trigger,
.home-gallery .wp-lightbox-container button.lightbox-trigger:hover,
.home-gallery .wp-lightbox-container button.lightbox-trigger:focus {
	opacity: 1;
}

@media ( max-width: 900px ) {
	.wp-block-gallery.home-gallery {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 16px;
	}
}
