/*
Theme Name: Anna Kos Blocks
Description: Block-editor (Gutenberg) version of the Solein theme for annakos.it. Same header, footer and look; every page is edited with blocks (Hero slider, Columns, Cards, Gallery, FAQ).
Template: solein
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: annakos-blocks
*/

/* ---------- Page canvas: block content with content / wide / full widths ---------- */
.ak-content {
	padding: 0 16px 4rem;
}
.ak-content > * {
	max-width: var(--wp--style--global--content-size, 860px);
	margin-left: auto;
	margin-right: auto;
}
.ak-content > .alignwide {
	max-width: var(--wp--style--global--wide-size, 1200px);
}
.ak-content > .alignfull {
	max-width: none;
	margin-left: -16px;
	margin-right: -16px;
}
/* Floated images stay inside the text column. */
.ak-content > .alignleft {
	float: left;
	margin: .4em 1.5em 1em max(0px, calc((100% - var(--wp--style--global--content-size, 860px)) / 2));
}
.ak-content > .alignright {
	float: right;
	margin: .4em max(0px, calc((100% - var(--wp--style--global--content-size, 860px)) / 2)) 1em 1.5em;
}
@media (max-width: 600px) {
	.ak-content > .alignleft,
	.ak-content > .alignright {
		float: none;
		margin: 1rem auto;
		max-width: 100%;
	}
	.ak-content > .alignleft img,
	.ak-content > .alignright img { width: 100%; }
}
.ak-content > h2,
.ak-content > .wp-block-group,
.ak-content > .wp-block-columns,
.ak-content > .wp-block-gallery,
.ak-content > .wp-block-buttons { clear: both; }
.ak-content > .alignfull + * {
	margin-top: 2.5rem;
}

/* Typography inside content (parent CSS styles h1 for the white hero title). */
.ak-content h1,
.ak-content h2,
.ak-content h3,
.ak-content h4 {
	font-family: "Yeseva One", Times, "Times New Roman", serif;
	color: #000;
	text-transform: none;
}
.ak-content h1 {
	font-size: clamp(2rem, 4vw, 2.67rem);
	text-align: left;
	padding-top: 2.5rem;
	line-height: 1.2;
}
.ak-content h2 { font-size: clamp(1.5rem, 3vw, 1.78rem); line-height: 1.2; margin-top: 2.5rem; }
.ak-content h3 { font-size: 1.35rem; min-height: 0; margin-top: 2rem; }
.ak-content p,
.ak-content li { font-size: 1rem; line-height: 1.65; }

/* Centered section title (old .black-title). */
.ak-content .is-style-ak-section-title {
	text-align: center;
	margin: 3rem auto 2rem;
}

/* ---------- Buttons: black, uppercase, square (old .button) ---------- */
.ak-content .wp-block-button__link,
.ak-content a.button {
	background: #000;
	color: #fff;
	text-transform: uppercase;
	font-family: Roboto, Helvetica, Arial, sans-serif;
	border-radius: 0;
	padding: .85em 1.2em;
	text-decoration: none;
	font-size: 1rem;
	line-height: 1;
}
.ak-content .wp-block-button__link:hover,
.ak-content a.button:hover { background: #333; color: #fff; }
.ak-content .is-style-outline .wp-block-button__link {
	background: transparent;
	color: #000;
	border: 1px solid #000;
}
.ak-content .wp-block-buttons { margin: 2rem auto; gap: .75rem; }

/* ---------- Service cards (old .prices-wrap / .card) ---------- */
.ak-content .is-style-ak-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.5rem 2rem;
	margin-top: 2rem;
}
.ak-content .is-style-ak-cards > .wp-block-group { text-align: center; margin: 0; }
.ak-content .is-style-ak-cards h3 { margin-top: 0; }
.ak-content .is-style-ak-cards .price-tag { font-weight: 700; }
@media (max-width: 900px) { .ak-content .is-style-ak-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ak-content .is-style-ak-cards { grid-template-columns: 1fr; } }

/* ---------- Packages (3 columns) ---------- */
.ak-content .wp-block-columns { gap: 2rem; margin-bottom: 2rem; }
.ak-content .wp-block-column img { width: 100%; height: auto; }
.ak-content .wp-block-column h3:first-child,
.ak-content .wp-block-column figure + h3 { margin-top: 1rem; }

/* ---------- Gallery ---------- */
.ak-content .wp-block-gallery.has-nested-images figure.wp-block-image img { object-fit: cover; }
.ak-content .wp-block-image img { height: auto; }

/* ---------- Cover used as page hero (contact pages) ---------- */
.ak-content .wp-block-cover.ak-page-hero h1 {
	color: #fff;
	text-align: center;
	padding-top: 0;
	margin: 0;
}

/* ---------- Hero slider block (same markup/CSS as the old ACF carousel) ---------- */
.ak-content > .ak-hero { margin-bottom: 0; }
.ak-content .ak-hero .feature__content h1,
.ak-content .ak-hero .feature__content h2 {
	color: #fff;
	text-align: center;
	padding-top: 0;
	margin-top: 0;
	font-size: 1.78rem;
}
.ak-hero:not(.slick-initialized) .carousel__item + .carousel__item { display: none; }
/* Slide height follows the 16:6 photo instead of a fixed 600px minimum, which
   blew photos up 1.5–4x (laptops/phones) and made them look zoomed and soft. */
.ak-hero .feature {
	min-height: clamp(340px, 37.5vw, 80vh);
}
/* Parent CSS sizes slide images by their file's intrinsic size (width:auto,
   min-width:100%), so lazily loaded slides could render 3000px wide. Fill the box. */
.ak-hero .carousel__item img {
	top: 0;
	left: 0;
	transform: none;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

/* ---------- Social icons: square black tiles (old .socials menu) ---------- */
.ak-content .wp-block-social-links.ak-social { gap: 6px; margin: 1rem auto 2rem; }
.ak-content .ak-social .wp-social-link { border-radius: 0; }
.ak-content .ak-social .wp-block-social-link-anchor { padding: .45em; }

/* ---------- Footer site map (white on the black footer) ---------- */
.ak-footer-map {
	padding: 1.5rem .9375rem 1rem;
	border-top: 1px solid rgba(255, 255, 255, .2);
	margin-top: 1rem;
}
.ak-footer-map__grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 1.5rem 3rem;
}
.ak-footer-map__title {
	font-family: "Yeseva One", Times, "Times New Roman", serif;
	font-size: 1.1rem;
	margin: 0 0 .6rem;
	color: #fff;
}
.ak-footer-map ul { list-style: none; margin: 0; padding: 0; }
.ak-footer-map li { margin: 0 0 .45rem; line-height: 1.4; }
.ak-footer-map__col--wide ul { padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .3); }
.ak-footer-map a { color: #fff; text-decoration: none; font-size: .95rem; }
.ak-footer-map a:hover,
.ak-footer-map a:focus { text-decoration: underline; }
.ak-footer-map a[aria-current="page"] { text-decoration: underline; opacity: .75; }
@media (max-width: 640px) {
	.ak-footer-map__grid { grid-template-columns: 1fr; }
}

.ak-footer-legal a { color: #fff; text-decoration: underline; }

/* ---------- FAQ and "learn more" ---------- */
.ak-content .ak-faq { margin-top: 3rem; }
.ak-content .ak-faq h3 { margin: 1.5rem 0 .4rem; }
.ak-content .ak-more ul { list-style: none; padding: 0; }
