/* Blue ilusalong – lisastiilid. Värvid ja fondid tulevad failist theme.json. */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.blue-main > .wp-block-post-content > *:first-child { margin-block-start: 0; }
.blue-main .wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }

/* Päis */
.blue-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(168, 123, 82, .18); backdrop-filter: blur(8px); background-color: rgba(247, 241, 232, .94) !important; }
.admin-bar .blue-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .blue-header { top: 0; position: relative; } }
.blue-brand .wp-block-site-title { margin: 0; }
.blue-brand .blue-brand__tag { margin: 0; font-size: .62rem; letter-spacing: .42em; color: var(--wp--preset--color--karamell); }
.blue-header .wp-block-navigation a { text-decoration: none; }
.blue-header .wp-block-navigation a:hover { color: var(--wp--preset--color--ookean); }
.blue-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--ookean); border-bottom: 1px solid currentColor; }
@media (max-width: 600px) { .blue-header-cta { display: none; } }

/* Silt (väike pealkiri) */
.is-style-silt {
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--karamell);
	margin-bottom: .25rem;
}
.is-style-silt + .wp-block-heading { margin-block-start: .4rem; }

/* Pealkirjades kaldkiri sinisena */
.wp-block-heading em { color: var(--wp--preset--color--ookean); }
.has-valge-color .wp-block-heading em, .wp-block-heading.has-valge-color em { color: var(--wp--preset--color--liiv-tume); }

/* Nupud */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--ookean); border: 1px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ookean); color: #fff; }
.wp-block-button.is-style-hele > .wp-block-button__link { background: var(--wp--preset--color--valge); color: var(--wp--preset--color--sugavik); }
.wp-block-button.is-style-hele > .wp-block-button__link:hover { background: var(--wp--preset--color--liiv); color: var(--wp--preset--color--sugavik); }
.wp-block-button__link { transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }

/* Pildid: kaar ja ovaal */
.wp-block-image.is-style-kaar img { border-radius: 999px 999px 6px 6px; }
.wp-block-image.is-style-ovaal img { border-radius: 50%; }

/* Avalehe esimene plokk */
.blue-hero .blue-hero__media .wp-block-image { margin: 0; }
.blue-hero .blue-hero__media img { width: 100%; min-height: 560px; border-radius: 0; display: block; }
.blue-hero .blue-hero__text > * { max-width: 34rem; margin-left: auto; margin-right: auto; }
@media (max-width: 781px) {
	.blue-hero .blue-hero__media img { min-height: 0; aspect-ratio: 4/3 !important; }
}

/* 40 aastat */
.blue-number { font-family: var(--wp--preset--font-family--cormorant); font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1; margin-top: var(--wp--preset--spacing--40); }
.blue-number span { font-family: var(--wp--preset--font-family--jost); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; vertical-align: middle; margin-left: .4rem; }

/* Eelised tähekesega */
.blue-eelis { position: relative; padding-left: 2.6rem; }
.blue-eelis + .blue-eelis { margin-top: var(--wp--preset--spacing--50); }
.blue-eelis::before { content: "✦"; position: absolute; left: 0; top: .1rem; font-size: 1.35rem; color: var(--wp--preset--color--ookean); }
.blue-eelis .wp-block-heading { margin-top: .2rem; font-size: var(--wp--preset--font-size--x-large); }

/* Teenuste kaardid */
.blue-teenus { display: flex; flex-direction: column; background: var(--wp--preset--color--valge); box-shadow: var(--wp--preset--shadow--pehme); transition: transform .35s ease, box-shadow .35s ease; }
.blue-teenus:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -22px rgba(20, 51, 106, .38); }
.blue-teenus > .wp-block-image { margin: 0; }
.blue-teenus > .wp-block-image img { border-radius: 0; width: 100%; }
.blue-teenus .blue-teenus__tekst { flex: 1; margin-top: 0 !important; }
.blue-more a { text-decoration: none; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }

/* Kaardi stiil (nt asukohad) */
.is-style-kaart { background: var(--wp--preset--color--valge); padding: var(--wp--preset--spacing--50); border-top: 3px solid var(--wp--preset--color--ookean); box-shadow: var(--wp--preset--shadow--pehme); }
.is-style-kaart .wp-block-heading { margin-top: .25rem; }

/* Galerii */
.blue-galerii.wp-block-gallery img { aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }

/* Teenuste leht */
.blue-teenus-rida { padding: var(--wp--preset--spacing--30) 0; border-bottom: 1px solid rgba(168, 123, 82, .3); }
.blue-teenus-rida:first-child { border-top: 1px solid rgba(168, 123, 82, .3); }
.blue-teenus-rida .wp-block-heading { margin: 0; font-size: var(--wp--preset--font-size--large); }
.blue-teenus-rida__hind { margin: 0; white-space: nowrap; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ookean); font-weight: 500; }
.blue-teenus-rida > p { margin-top: .25rem; opacity: .85; }

/* Hinnakiri: punktiirjoonega read */
.blue-hinnakategooria .wp-block-heading { border-bottom: 1px solid var(--wp--preset--color--liiv-tume); padding-bottom: .4rem; }
.is-style-hinnarida { gap: .75rem !important; padding: .7rem 0; }
.is-style-hinnarida > p { margin: 0; }
.is-style-hinnarida::after { content: none; }
.is-style-hinnarida .hinnarida__nimi { flex: 0 1 auto; }
.is-style-hinnarida .hinnarida__nimi span { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--karamell); letter-spacing: .08em; margin-left: .35rem; white-space: nowrap; }
.is-style-hinnarida .hinnarida__hind { order: 3; flex: 0 0 auto; font-weight: 500; color: var(--wp--preset--color--ookean); white-space: nowrap; }
.is-style-hinnarida::before { content: ""; order: 2; flex: 1 1 2rem; border-bottom: 1px dotted var(--wp--preset--color--liiv-tume); transform: translateY(-.45em); min-width: 1.5rem; }
.is-style-hinnarida .hinnarida__nimi { order: 1; }

/* Lehe päis */
.blue-page-hero { background-image: radial-gradient(ellipse at 85% 0%, rgba(255, 255, 255, .55), transparent 60%); }
.blue-page-hero .wp-block-heading { margin-top: .3rem; }

/* Jalus */
.blue-footer .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--ookean); }
.blue-footer a { text-decoration: none; color: var(--wp--preset--color--tint); }
.blue-footer a:hover { color: var(--wp--preset--color--ookean); }
.blue-footer .is-style-silt { color: var(--wp--preset--color--ookean); }
.blue-footer .wp-block-separator { border-color: rgba(168, 123, 82, .35); opacity: 1; }

/* Ankrute kõrvalekalle kleepuva päise tõttu */
[id] { scroll-margin-top: 110px; }

/* Mobiil */
@media (max-width: 781px) {
	.blue-osa .wp-block-columns { flex-direction: column; }
	.blue-osa .wp-block-column { flex-basis: 100% !important; }
	.blue-lugu .wp-block-column:first-child { max-width: 320px; margin: 0 auto; }
}
