/* Theme layer for Haapsalu Silmakabinet. Colors and type come from theme.json presets. */

/* WCAG touch targets: buttons and menu controls keep a 44px minimum. */
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
}

.wp-block-navigation .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Visible focus everywhere: 3px navy ring with a turquoise-light halo. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible,
.wp-block-navigation a:focus-visible,
.wp-block-navigation__responsive-container-open:focus-visible {
	outline: 3px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 8px var(--wp--preset--color--turquoise-light);
}

/* Inline links stay underlined; buttons and menus are exempt. */
:is(
	.wp-block-post-content,
	.wp-block-column,
	.wp-block-post,
	.sk-services,
	.sk-service-facts,
	.sk-booking-form,
	.sk-contact,
	.sk-latest-articles,
	.sk-team-grid
) a:not(.wp-element-button):not(.wp-block-button__link):not(.wp-block-navigation-item__content) {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Header: one 80px row on desktop, 64px on mobile (booking CTA moves to the
   sticky bar on small screens). */
.sk-site-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-top: 8px;
	padding-bottom: 8px;
	background: var(--wp--preset--color--white);
}

.sk-site-header__bar {
	min-height: 64px;
}

/* Logo: 44px tall on mobile, 64px on tablet, 72px from 1024px (the 239px-tall
   image stays sharp up to ~3.3x). */
.sk-logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.sk-logo img {
	display: block;
	width: auto;
	height: 44px;
}

@media (min-width: 782px) {
	.sk-site-header .sk-logo img {
		height: 64px;
	}
}

@media (min-width: 1024px) {
	.sk-site-header .sk-logo img {
		height: 72px;
	}
}

.sk-site-header .wp-block-navigation {
	color: var(--wp--preset--color--navy);
	font-weight: 500;
}

.sk-site-header .wp-block-navigation a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--turquoise);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

@media (min-width: 782px) {
	.sk-site-header__bar {
		min-height: 80px;
	}
}

/* Section rhythm: 40px on mobile, 72px on desktop. */
.sk-section {
	padding-top: 40px;
	padding-bottom: 40px;
}

@media (min-width: 782px) {
	.sk-section {
		padding-top: 72px;
		padding-bottom: 72px;
	}
}

/* Hero: 36px on mobile, 72px on desktop; intro constrained to 44ch. */
.sk-hero {
	padding-top: 36px;
	padding-bottom: 36px;
}

@media (min-width: 782px) {
	.sk-hero {
		padding-top: 72px;
		padding-bottom: 72px;
	}
}

.sk-hero__intro {
	max-width: 44ch;
}

.sk-hero__more {
	margin: 0;
}

/* Eyebrow label: gold-ink text after a short gold rule (echoes the logo divider). */
.sk-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--gold-ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sk-eyebrow::before {
	width: 28px;
	height: 2px;
	content: "";
	background: var(--wp--preset--color--gold);
}

/* Hero photo: rounded, navy-tinted shadow, gold dot accent. */
.sk-hero__photo {
	position: relative;
}

.sk-hero__photo .sk-media {
	margin: 0;
}

.sk-hero__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 18px 40px -18px rgba(7, 56, 102, 0.45);
}

.sk-hero__photo::after {
	position: absolute;
	bottom: -10px;
	left: 28px;
	width: 64px;
	height: 3px;
	content: "";
	background: var(--wp--preset--color--gold);
	border-radius: 2px;
}

.sk-hero__photo::before {
	position: absolute;
	bottom: -14px;
	left: 100px;
	width: 11px;
	height: 11px;
	content: "";
	background: var(--wp--preset--color--gold);
	border-radius: 50%;
}

@media (max-width: 781px) {
	.sk-hero__photo img {
		max-height: 260px;
		aspect-ratio: auto;
	}
}

/* Booking page: 720px container via the page-broneeri template. */
.sk-booking-main {
	padding-top: 24px;
}

@media (min-width: 782px) {
	.sk-booking-main {
		padding-top: 40px;
	}
}

.sk-booking-form__heading--summary {
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 500;
}

.sk-booking-form__intro {
	margin-top: var(--wp--preset--spacing--30);
}

.sk-booking-form__form {
	margin-top: var(--wp--preset--spacing--50);
}

.sk-booking-form__note {
	margin-top: var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Service listing (silmakabinet/service-grid). */
.sk-services {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--50);
}

.sk-services__note {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.sk-service-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 640px) {
	.sk-service-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.sk-service-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Shared card look: white, 1px sand-mid, 16px radius, no shadow. Cards with an
   image on top clip it to the card radius. */
.sk-service-card,
.sk-explainer-card,
.sk-post-card,
.sk-article-card,
.sk-team-card,
.sk-product-teaser {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--sand-mid);
	border-radius: 16px;
}

.sk-service-card,
.sk-explainer-card,
.sk-post-card,
.sk-article-card,
.sk-team-card,
.sk-product-teaser {
	padding: 20px;
}

@media (min-width: 782px) {
	.sk-service-card,
	.sk-explainer-card,
	.sk-post-card,
	.sk-article-card,
	.sk-team-card {
		padding: var(--wp--preset--spacing--50);
	}
}

.sk-service-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	overflow: hidden;
}

/* Card photos: 16:10 bleed to the card edge on top of the card. */
.sk-service-card__media,
.sk-article-card__media,
.sk-post-card__media {
	margin: -20px -20px 0;
}

@media (min-width: 782px) {
	.sk-service-grid .sk-service-card__media,
	.sk-article-card__media,
	.sk-post-card__media {
		margin: calc(-1 * var(--wp--preset--spacing--50)) calc(-1 * var(--wp--preset--spacing--50)) 0;
	}
}

.sk-service-card__image,
.sk-article-card__image,
.sk-post-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.sk-service-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}

/* Card titles read as headings: navy text, turquoise underline. */
.sk-service-card__title a,
.sk-article-card__title a,
.sk-post-card .wp-block-post-title a,
.sk-product-teaser h3 a {
	color: var(--wp--preset--color--navy);
	text-decoration-color: var(--wp--preset--color--turquoise);
	text-decoration-thickness: 2px;
}

.sk-service-card__title a:hover,
.sk-article-card__title a:hover,
.sk-post-card .wp-block-post-title a:hover,
.sk-product-teaser h3 a:hover {
	color: var(--wp--preset--color--turquoise-ink);
}

.sk-service-card__excerpt {
	margin: 0;
}

.sk-service-card__meta {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.sk-service-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	margin-top: auto;
}

/* Buttons inside cards are a compact secondary size (~43px pill beside the
   "Loe lähemalt" link); the hero keeps the large primary button. */
:is(
	.sk-service-card,
	.sk-article-card,
	.sk-post-card,
	.sk-product-card,
	.sk-product-teaser
) .wp-element-button {
	box-sizing: border-box;
	min-height: 40px;
	padding: 10px 20px;
	font-size: 1rem;
	line-height: 1.2;
}

/* First service by menu_order is featured full-width above the grid. */
.sk-service-card--featured {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--white);
	border-top: 4px solid var(--wp--preset--color--turquoise);
}

@media (min-width: 782px) {
	.sk-service-card--featured {
		padding: var(--wp--preset--spacing--60);
	}
}

/* Featured card: photo beside the text on wide screens, on top on mobile. */
.sk-service-card--featured .sk-service-card__media {
	flex: 1 1 100%;
	margin: calc(-1 * var(--wp--preset--spacing--50)) calc(-1 * var(--wp--preset--spacing--50)) 0;
}

@media (min-width: 782px) {
	.sk-service-card--featured {
		flex-wrap: nowrap;
		align-items: stretch;
		padding: 0;
	}

	.sk-service-card--featured .sk-service-card__media {
		position: relative;
		flex: 0 0 42%;
		min-height: 300px;
		margin: 0;
	}

	.sk-service-card--featured .sk-service-card__image {
		position: absolute;
		inset: 0;
		height: 100%;
		aspect-ratio: auto;
	}

	.sk-service-card--featured .sk-service-card__main {
		align-self: center;
		padding: var(--wp--preset--spacing--60);
	}
}

.sk-service-card--featured .sk-service-card__main {
	flex: 1 1 30ch;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.sk-service-card--featured .sk-service-card__actions {
	margin-top: 0;
}

/* Service facts panel (silmakabinet/service-facts): compact surface summary. */
.sk-service-facts {
	padding: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--white);
	border-left: 4px solid var(--wp--preset--color--turquoise);
	border-radius: 16px;
}

/* Featured image on service and article pages: full content width, 16:9. */
.sk-featured-image {
	width: 100%;
}

.sk-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 16px;
}

.sk-service-facts dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--50);
	margin: 0;
}

.sk-service-facts dt {
	color: var(--wp--preset--color--navy);
	font-weight: 600;
}

.sk-service-facts dd {
	margin: 0;
}

.sk-service-facts ul {
	margin: 0;
	padding-left: var(--wp--preset--spacing--40);
}

.sk-service-facts__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	margin-top: var(--wp--preset--spacing--50);
}

.sk-service-facts__cta {
	min-height: 48px;
}

.sk-service-facts__tbc {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Service page content: 65ch paragraphs. */
.sk-service-content > * {
	max-width: 65ch;
}

/* Intro/lead paragraphs on wide-layout pages (/tooted/, /meist/): readable
   measure while keeping the page's wide left edge. */
.sk-page-lead {
	max-width: 65ch;
}

/* Price list (silmakabinet/price-list): scrolls horizontally on small screens. */
.sk-price-list-wrap {
	overflow-x: auto;
}

.sk-price-list {
	width: 100%;
	border-collapse: collapse;
	background: var(--wp--preset--color--white);
}

.sk-price-list th,
.sk-price-list td {
	padding: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
}

.sk-price-list thead th {
	border-bottom: 2px solid var(--wp--preset--color--navy);
}

/* Keep the three columns within 390px without page-level scroll. */
@media (max-width: 781px) {
	.sk-price-list {
		font-size: var(--wp--preset--font-size--small);
	}

	.sk-price-list th,
	.sk-price-list td {
		padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
	}
}

.sk-price-list__facts-note {
	margin: 0 0 var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Contact block (silmakabinet/contact). */
.sk-contact address {
	font-style: normal;
}

.sk-contact p {
	margin: 0 0 var(--wp--preset--spacing--20);
}

/* Footer: full-bleed navy band, reversed logo, #F8F7F3 text (11.1:1),
   turquoise-mid links (7.2:1). */
.sk-site-footer {
	padding-top: 32px;
	padding-bottom: 32px;
	color: #f8f7f3;
}

.sk-site-footer .wp-block-heading {
	color: #f8f7f3;
}

.sk-site-footer a,
.sk-site-footer .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--turquoise-mid);
}

/* Footer link lists are compact: 24px WCAG 2.5.8 targets with a 7px rhythm,
   not the 44px header-menu rows. */
.sk-site-footer .wp-block-navigation .wp-block-navigation-item__content {
	min-height: 24px;
}

.sk-site-footer .wp-block-navigation .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--20);
}

.sk-site-footer .sk-logo img {
	height: 72px;
}

.sk-site-footer__legal {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid rgba(185, 154, 92, 0.6);
	font-size: var(--wp--preset--font-size--small);
}

.sk-site-footer__legal p {
	margin: 0;
}

@media (min-width: 782px) {
	.sk-site-footer {
		padding-top: 48px;
		padding-bottom: 48px;
	}
}

.sk-site-footer a {
	text-decoration: none;
}

.sk-site-footer a:hover {
	text-decoration: underline;
}


/* Sticky mobile booking bar. Hidden on desktop and on booking pages
   (body.sk-no-booking-bar). */
.sk-mobile-booking-bar {
	display: none;
}

@media (max-width: 781px) {
	body:not(.sk-no-booking-bar) .sk-mobile-booking-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 100;
		display: block;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		background: var(--wp--preset--color--white);
		border-top: 1px solid var(--wp--preset--color--line);
		box-shadow: 0 -2px 12px rgba(7, 56, 102, 0.12);
	}

	body:not(.sk-no-booking-bar) .sk-mobile-booking-bar .wp-block-button__link {
		min-height: 48px;
	}

	/* Reserve equivalent space so the bar never covers content/footer. */
	body:not(.sk-no-booking-bar) {
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	}
}

/* Booking plugin (booking-system-timo) theming — variables only, per project rules.
   Signal is turquoise-ink, not turquoise: navy on #04AFC4 is 4.49:1 and axe
   flags the chosen day cell; white on #007A8A is 5.06:1. */
.booking-timo {
	--bt-accent: #073866;
	--bt-accent-ink: #ffffff;
	--bt-signal: #007a8a;
	--bt-signal-ink: #ffffff;
	--bt-line: #d9c7a7;
	--bt-radius: 12px;
}

/* Secondary button: white with a 2px navy border. */
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--navy);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--navy-light);
	color: var(--wp--preset--color--navy);
}

/* Buttons on navy sections invert: white background, navy text. */
.has-navy-background-color .wp-element-button,
.has-navy-background-color .wp-block-button__link {
	border-color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

/* Trust bullets with check marks. */
.sk-trust-list {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	list-style: none;
}

.sk-trust-list li {
	position: relative;
	padding-left: 2rem;
}

.sk-trust-list li::before {
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 1.25rem;
	height: 1.25rem;
	content: "";
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23E6F7F9' stroke='%2304AFC4'/%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='%23073866' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

/* "Kuidas broneerida" steps: unboxed, numbers + text only. */
.sk-step__num {
	margin: 0;
	color: var(--wp--preset--color--navy);
	font-weight: 700;
	line-height: 1;
}

.sk-step h3 {
	margin-top: var(--wp--preset--spacing--30);
}

/* Latest articles block (silmakabinet/latest-articles). */
.sk-latest-articles__inner {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

.sk-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--50);
}

.sk-section-head h2 {
	margin: 0;
}

.sk-section-head p {
	margin: 0;
}

.sk-article-grid,
.sk-post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--50);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 640px) {
	.sk-article-grid,
	.sk-post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.sk-article-grid,
	.sk-post-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.sk-article-card,
.sk-post-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	text-align: left;
}

/* Undo constrained-layout auto margins so flex items stretch full width. */
.sk-article-card > *,
.sk-post-card > * {
	margin-inline: 0 !important;
}

.sk-article-card,
.sk-post-card {
	overflow: hidden;
}

/* Card photos bleed to the card edge (overrides the reset above). */
.sk-article-card > .sk-article-card__media,
.sk-post-card > .sk-post-card__media {
	margin: -20px -20px 0 !important;
}

@media (min-width: 782px) {
	.sk-article-card > .sk-article-card__media,
	.sk-post-card > .sk-post-card__media {
		margin: calc(-1 * var(--wp--preset--spacing--50)) calc(-1 * var(--wp--preset--spacing--50)) 0 !important;
	}
}

/* In the posts grid the <li> is the grid item — let the inner card fill it. */
.sk-post-grid .wp-block-post {
	display: flex;
	flex-direction: column;
	margin-block: 0;
}

.sk-post-grid .wp-block-post > .sk-post-card {
	flex: 1;
}

.sk-article-card__date,
.sk-post-card__date,
.sk-post-meta {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.sk-article-card__title,
.sk-post-card .wp-block-post-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}

.sk-article-card__excerpt,
.sk-post-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.sk-article-card__more {
	margin: auto 0 0;
}

.sk-post-card .wp-block-read-more {
	margin-top: auto;
}

/* Article pages. */
.sk-review-line {
	border-left: 3px solid var(--wp--preset--color--turquoise);
	padding-left: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted);
}

.sk-article-cta {
	border-radius: 16px;
	text-align: center;
}

.sk-article-cta .wp-block-heading {
	margin-top: 0;
}

/* Team grid (silmakabinet/team). */
.sk-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--wp--preset--spacing--50);
	list-style: none;
	margin: 0;
	padding: 0;
}

.sk-team-card {
	text-align: center;
}

.sk-team-card__photo {
	width: 120px;
	height: 120px;
	margin-inline: auto;
	border-radius: 50%;
	object-fit: cover;
}

.sk-team-card__photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--sand);
	border: 2px dashed var(--wp--preset--color--muted);
}

.sk-team-card__name {
	margin: var(--wp--preset--spacing--30) 0 0;
}

.sk-team-card__role {
	margin: var(--wp--preset--spacing--20) 0 0;
	color: var(--wp--preset--color--turquoise-ink);
	font-weight: 600;
}

.sk-team-card__quals,
.sk-team-card__bio {
	margin: var(--wp--preset--spacing--20) 0 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Front-page product teasers: one grid of six tiles — 2 columns on small
   screens, 3 columns × 2 rows from 782px. Every tile supports an image on
   top; until a photo lands the tile shows its title only. */
.sk-product-teasers {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--40);
}

@media (min-width: 782px) {
	.sk-product-teasers {
		grid-template-columns: repeat(3, 1fr);
	}
}

.sk-product-teasers > *,
.sk-product-grid > * {
	margin-block: 0;
}

.sk-product-teaser {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	overflow: hidden;
}

.sk-product-teaser:has(> .sk-media:first-child) {
	justify-content: flex-start;
}

.sk-product-teaser .sk-media,
.sk-product-card .sk-media {
	margin: 0;
}

/* Card photos bleed to the card edge, like on service/article cards. */
.sk-product-teaser > .sk-media:first-child {
	margin: calc(-1 * var(--wp--preset--spacing--30)) calc(-1 * var(--wp--preset--spacing--40)) var(--wp--preset--spacing--30);
}

.sk-product-teaser img,
.sk-product-card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.sk-product-teaser h3 {
	margin: 0;
	font-weight: 600;
	width: 100%;
}

.sk-product-teaser a {
	display: flex;
	align-items: center;
	min-height: 48px;
}

/* Product categories on /tooted/: one card design — image on top when the
   category has a photo, same 1px border and radius with or without it. */
.sk-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--50);
}

@media (min-width: 640px) {
	.sk-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.sk-product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.sk-product-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 20px;
	overflow: hidden;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--sand-mid);
	border-radius: 16px;
}

.sk-product-card > * {
	margin-block: 0;
}

.sk-product-card > .sk-media:first-child {
	margin: -20px -20px 0;
}

/* /meist/ intro photo. */
.sk-about-intro .sk-media {
	margin: 0;
}

.sk-about-intro img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 18px 40px -18px rgba(7, 56, 102, 0.45);
}

/* Accessibility: honor reduced-motion. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* Full-bleed sections sit flush: no blockGap strips between header, sections and footer. */
.wp-site-blocks > main,
.wp-site-blocks > footer,
main > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Front page focus tiles and one-pager sections (feedback 2026-10-27). */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

#optometrist,
#silmaarst,
#prillid,
#laatsed {
	scroll-margin-top: 1rem;
}

.sk-focus {
	padding-block: var(--wp--preset--spacing--50);
}

.sk-focus__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--30);
}

/* Two columns only once "Optometrist" fits beside its neighbour. */
@media (min-width: 360px) {
	.sk-focus__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sk-focus__tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	min-height: 44px;
	padding: 1rem;
	border: 2px solid transparent;
	border-radius: 16px;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.sk-focus__tile:hover,
.sk-focus__tile:focus-visible {
	border-color: var(--wp--preset--color--navy);
}

.sk-focus__title {
	font-size: 1.25rem;
	font-weight: 700;
}

@media (min-width: 782px) {
	.sk-focus__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.sk-focus__tile {
		padding: 1.25rem;
	}
}
