/*
Theme Name: VTU Valmiera Modern
Theme URI: https://vtu-valmiera.lv/
Author: VTU Valmiera
Description: A lightweight block theme for the VTU Valmiera public transport website.
Version: 1.0.2
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: vtu-valmiera-modern
*/

:root { --vtu-teal: #00878a; --vtu-deep: #075e63; --vtu-ink: #19363a; --vtu-muted: #5e7375; --vtu-line: #dbe9e8; --vtu-paper: #f4f8f7; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--vtu-teal); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.vtu-shell { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.vtu-header { border-bottom: 1px solid var(--vtu-line); background: #fff; position: relative; z-index: 5; }
.vtu-header-inner { min-height: 88px; gap: 2rem; }
.vtu-brand { gap: .8rem; min-width: 0; }
.vtu-brand .wp-block-site-logo img { max-width: 260px; max-height: 55px; object-fit: contain; }
.vtu-brand .wp-block-site-title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
.vtu-brand .wp-block-site-title a { color: var(--vtu-deep); text-decoration: none; }
.vtu-header .wp-block-navigation { font-size: .91rem; font-weight: 650; }
.vtu-header .wp-block-navigation a { color: var(--vtu-ink); }
.vtu-header .wp-block-navigation a:hover { color: var(--vtu-teal); }
.vtu-topline { background: var(--vtu-deep); color: #fff; font-size: .76rem; letter-spacing: .045em; }
.vtu-topline .vtu-shell { padding-block: .4rem; }
.vtu-topline a { color: #fff; text-decoration: none; }
.vtu-topline a:hover { text-decoration: underline; }
.vtu-main { padding-block: 3.5rem 5rem; }
.vtu-hero { position: relative; overflow: hidden; border-radius: 26px; background: linear-gradient(118deg, #075e63 0%, #00878a 72%, #149497 100%); color: #fff; min-height: 340px; padding: clamp(2rem, 5vw, 4.5rem); }
.vtu-hero::before { content: ''; position: absolute; width: min(64vw, 630px); aspect-ratio: 1; border: clamp(22px, 5vw, 58px) solid rgba(255,255,255,.10); border-radius: 50%; right: -9%; top: -48%; pointer-events: none; }
.vtu-hero::after { content: ''; position: absolute; width: 14px; height: 14px; border: 5px solid #fff; background: var(--vtu-teal); border-radius: 50%; right: 18%; top: 33%; box-shadow: -200px 129px 0 -1px var(--vtu-teal), -200px 129px 0 4px rgba(255,255,255,.75); opacity: .8; pointer-events: none; }
.vtu-hero > * { position: relative; z-index: 1; }
.vtu-hero .vtu-eyebrow { color: #d8f5f3; }
.vtu-hero h1 { max-width: 760px; line-height: 1.07; letter-spacing: -.045em; margin: .65rem 0 1.25rem; }
.vtu-hero p:not(.vtu-eyebrow) { max-width: 600px; color: #e5f5f4; font-size: 1.08rem; }
.vtu-eyebrow { font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.vtu-section { margin-block: 4.5rem; }
.vtu-section-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.vtu-section-header h2 { margin: .2rem 0 0; letter-spacing: -.035em; }
.vtu-section-header a { font-weight: 700; color: var(--vtu-deep); }
.vtu-route-grid { gap: 1rem; }
.vtu-route-card { height: 100%; background: #fff; border: 1px solid var(--vtu-line); border-radius: 18px; padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 0 12px 32px rgba(19,75,78,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.vtu-route-card:hover { transform: translateY(-3px); border-color: #a5d4d2; box-shadow: 0 18px 36px rgba(19,75,78,.09); }
.vtu-route-card .vtu-card-index { color: var(--vtu-deep); margin: 0 0 2rem; font-size: .8rem; font-weight: 750; letter-spacing: .1em; }
.vtu-route-card h3 { line-height: 1.18; letter-spacing: -.03em; margin: 0 0 .6rem; }
.vtu-route-card p { color: var(--vtu-muted); margin: 0 0 1.4rem; }
.vtu-route-card .wp-block-button__link { padding: 0; background: none; color: var(--vtu-deep); font-weight: 750; text-decoration: underline; text-decoration-color: #acd4d2; text-underline-offset: .28em; }
.vtu-route-card .wp-block-button__link:hover { color: var(--vtu-teal); }
.vtu-news-query .wp-block-post-template { gap: 1.25rem; }
.vtu-news-card { height: 100%; overflow: hidden; border: 1px solid var(--vtu-line); background: #fff; border-radius: 18px; }
.vtu-news-card .wp-block-post-featured-image { margin: 0; }
.vtu-news-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.vtu-news-card-body { padding: 1.4rem; }
.vtu-news-card .wp-block-post-date { color: var(--vtu-muted); font-size: .82rem; }
.vtu-news-card .wp-block-post-title { line-height: 1.24; margin: .5rem 0 .75rem; letter-spacing: -.025em; }
.vtu-news-card .wp-block-post-title a { color: var(--vtu-ink); text-decoration: none; }
.vtu-news-card .wp-block-post-title a:hover { color: var(--vtu-teal); }
.vtu-news-card .wp-block-post-excerpt { color: var(--vtu-muted); font-size: .95rem; }
.vtu-news-card .wp-block-post-excerpt__more-link { color: var(--vtu-deep); font-weight: 700; display: inline-block; margin-top: .5rem; }
.vtu-page-title { margin: 0 0 1.2rem; line-height: 1.15; letter-spacing: -.045em; }
.vtu-article { max-width: 840px; margin-inline: auto; }
.vtu-article .wp-block-post-date, .vtu-archive-description { color: var(--vtu-muted); }
.vtu-article .wp-block-post-featured-image { margin-block: 2rem; }
.vtu-article .wp-block-post-featured-image img { border-radius: 15px; }
.vtu-article .wp-block-post-content { line-height: 1.75; }
.vtu-article .wp-block-post-content a { color: var(--vtu-deep); }
.vtu-article .wp-block-post-content iframe { max-width: 100%; }
.vtu-article .wp-block-post-content table { display: block; max-width: 100%; overflow-x: auto; }
.vtu-timetable iframe { width: 100%; min-height: min(78vh, 820px); border: 0; }
.vtu-footer { background: var(--vtu-deep); color: #fff; padding: 3.3rem 0 2rem; }
.vtu-footer h2, .vtu-footer p, .vtu-footer a { color: #fff; }
.vtu-footer a:hover { color: #d4f2f0; }
.vtu-footer .vtu-footer-meta { border-top: 1px solid rgba(255,255,255,.22); padding-top: 1.2rem; margin-top: 2.2rem; font-size: .83rem; color: #d7eeee; }
.vtu-footer .vtu-footer-meta a { color: #d7eeee; }
.wp-block-query-pagination { margin-top: 2rem; }
.wp-block-search__button { background: var(--vtu-deep); color: #fff; border: 0; border-radius: 9px; }
@media (max-width: 900px) { .vtu-header-inner { min-height: 72px; } .vtu-route-grid { flex-wrap: wrap !important; } .vtu-route-grid > .wp-block-column { min-width: min(100%, 270px); } .vtu-news-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 620px) { .vtu-shell { width: min(100% - 1.5rem, 1180px); } .vtu-hero { min-height: 300px; border-radius: 18px; padding: 2.2rem 1.5rem; } .vtu-hero h1 { font-size: 2.5rem; } .vtu-hero::after { display: none; } .vtu-main { padding-block: 1.5rem 3rem; } .vtu-section { margin-block: 3rem; } .vtu-route-grid { display: block !important; } .vtu-route-grid > .wp-block-column { margin-bottom: .85rem; } .vtu-news-query .wp-block-post-template { grid-template-columns: 1fr !important; } .vtu-section-header { align-items: flex-start; flex-direction: column; } .vtu-footer .wp-block-columns { display: block; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .vtu-route-card { transition: none; } .vtu-route-card:hover { transform: none; } }

/* Keep multilevel passenger and company menus readable. */
.vtu-header .wp-block-navigation__submenu-container { min-width: 225px; max-width: min(350px, 92vw); border: 1px solid var(--vtu-line); border-radius: 12px; box-shadow: 0 15px 32px rgba(19,75,78,.13); padding: .35rem; }
.vtu-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { white-space: normal; line-height: 1.3; padding: .55rem .7rem; }
.vtu-header .wp-block-navigation__container { column-gap: .9rem; row-gap: .35rem; }
@media (max-width: 900px) { .vtu-header .wp-block-navigation__container { column-gap: .6rem; } }
