/*
Theme Name: NetTours
Theme URI: https://nettours.co.uk
Author: NetTours Limited
Author URI: https://nettours.co.uk
Description: Block theme for the NetTours public website — travel/tour operator homepage and content, built on native Gutenberg blocks, block patterns, and theme.json design tokens.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 0.9.2
License: Proprietary
Text Domain: nettours
*/

/* Top-level landmarks (header/main/footer) must sit flush against each
   other - all vertical rhythm comes from padding within sections, never
   from external margin on the landmarks themselves. */
body > header,
body > main,
body > footer,
.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin: 0 !important;
}

header .wp-block-search__input {
	color: var(--wp--preset--color--grey-900);
	height: 2.25rem;
	padding: 0 0.6rem;
}

header .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--slate-700);
	opacity: 1;
}

header .wp-block-search__button {
	height: 2.25rem;
	padding-top: 0;
	padding-bottom: 0;
}

footer a {
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Reusable card primitives, shared across native-block patterns
   (Before Your Holiday, Categories, Destinations) so they stay visually
   consistent without duplicating styles per pattern. */

.nt-info-card {
	margin: 0 !important;
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--preset--shadow--card);
	padding: var(--wp--preset--spacing--sm);
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.nt-info-card:hover,
.nt-info-card:focus-within {
	box-shadow: var(--wp--preset--shadow--card-hover);
	transform: translateY(-2px);
}

.nt-info-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: var(--wp--preset--color--blue-700);
	color: var(--wp--preset--color--white);
	margin-bottom: 0.75rem;
}

.nt-info-card__link {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}

.nt-info-card__link:hover {
	text-decoration: underline;
}

.nt-category-tile {
	margin: 0 !important;
	position: relative;
	aspect-ratio: 3 / 2;
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
	background-size: cover;
	background-position: center;
	transition: transform 200ms ease;
}

.nt-category-tile:hover,
.nt-category-tile:focus-within {
	transform: scale(1.02);
}

.nt-category-tile__scrim {
	position: absolute;
	inset: 0;
	background: rgba(24, 74, 102, 0.5);
	pointer-events: none;
}

.nt-category-tile__content {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.5rem;
	padding: var(--wp--preset--spacing--sm);
}

.nt-category-tile .wp-block-heading {
	color: var(--wp--preset--color--white) !important;
	margin: 0;
}

.nt-category-tile a {
	color: var(--wp--preset--color--white);
	font-weight: 600;
	text-decoration: underline;
}

.nt-destination-card {
	margin: 0 !important;
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--preset--shadow--card);
	overflow: hidden;
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.nt-destination-card:hover,
.nt-destination-card:focus-within {
	box-shadow: var(--wp--preset--shadow--card-hover);
	transform: translateY(-2px);
}

.nt-destination-card__image {
	aspect-ratio: 4 / 3;
	background-color: var(--wp--preset--color--blue-400);
	background-size: cover;
	background-position: center;
}

.nt-destination-card__body {
	padding: var(--wp--preset--spacing--sm);
	text-align: center;
}

.nt-destination-card__body .wp-block-heading {
	margin: 0;
}

.nt-destination-card__body a {
	color: var(--wp--preset--color--blue-900);
	text-decoration: none;
}

.nt-destination-card__body a:hover {
	text-decoration: underline;
}

/* Explicit-column grid utilities: fixed desktop column counts rather than
   auto-fit "however many fit", per design spec (3-col info/category/
   destination sections, collapsing to 2 on tablet, 1 on mobile). */

.nt-grid-3,
.nt-grid-4 {
	display: grid !important;
	gap: var(--wp--preset--spacing--md);
}

.nt-grid-3 {
	grid-template-columns: repeat(3, 1fr) !important;
}

.nt-grid-4 {
	grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1024px) {
	.nt-grid-3,
	.nt-grid-4 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.nt-grid-3,
	.nt-grid-4 {
		grid-template-columns: 1fr !important;
	}
}
