/*
Theme Name: TrailTeam (Twenty Twenty-Four)
Theme URI: https://trailteam.lt
Description: TrailTeam – žmonių ir šunų paieškos komanda. Child tema, paremta Twenty Twenty-Four. Aktyvavus sukuria puslapius: Pradžia, Apie mus, Veikla, Ką daryti, jei dingo žmogus?, Prisidėk, Naujienos, Kontaktai.
Author: TrailTeam
Template: twentytwentyfour
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trailteam
*/

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 90px;
}

.wp-site-blocks {
    position: relative;
}

/* Sections touch each other – no gaps between full-width blocks */
.wp-site-blocks > footer,
.wp-site-blocks > main.tt-main,
.tt-sections > .alignfull,
.tt-sections > .alignfull + * {
    margin-block-start: 0 !important;
}

.wp-site-blocks > main:not(.tt-main) {
    padding-bottom: var(--wp--preset--spacing--50);
}

/* --- Header --- */

.tt-site-header {
    position: relative;
    z-index: 20;
}

.home .tt-site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent !important;
}

.tt-logo,
.tt-logo a {
    margin: 0;
    border: none;
}

.tt-logo img {
    border-radius: 0 !important;
    display: block;
    height: auto;
}

.tt-site-header .wp-block-navigation a:hover,
.tt-footer .wp-block-navigation a:hover {
    color: var(--wp--preset--color--accent-2);
    text-decoration: none;
}

/* --- Labels --- */

.tt-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--wp--preset--color--accent-3);
}

.tt-eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 3px;
    background: var(--wp--preset--color--accent-2);
    vertical-align: middle;
    margin: 0 10px 3px 0;
}

.tt-on-dark .tt-eyebrow {
    color: #e4c18f;
}

.tt-num {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wp--preset--color--accent-3);
}

.tt-muted-text {
    color: #4f5953;
}

/* --- Dark areas --- */

.tt-on-dark,
.tt-on-dark :is(h1, h2, h3, h4) {
    color: var(--wp--preset--color--base-2);
}

.tt-on-dark a:not(.wp-block-button__link) {
    color: var(--wp--preset--color--base-2);
}

.tt-on-dark .tt-muted {
    color: #d1d9d3;
}

.tt-on-dark .wp-block-button.is-style-outline .wp-block-button__link {
    color: var(--wp--preset--color--base-2);
}

.tt-on-dark .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--accent-2);
    color: var(--wp--preset--color--contrast);
}

/* --- Buttons --- */

.wp-block-button__link {
    transition: 0.2s ease;
}

.wp-block-button:hover .wp-block-button__link {
    transform: translateY(-2px);
}

.tt-btn-upper .wp-block-button__link {
    text-transform: uppercase;
}

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

/* --- Hero (front page) --- */

/*
 * Background photos of the hero, page headers and "Prisidėk" section are defaults only.
 * Change them in the editor: select the section → Styles → Background image.
 * The dark/cream colour overlay is drawn by ::before, so it stays over any chosen photo.
 */
.tt-hero,
.tt-page-hero,
.tt-join {
    position: relative;
    isolation: isolate;
    background-repeat: no-repeat;
}

.tt-hero::before,
.tt-page-hero::before,
.tt-join::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.tt-hero {
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #0c1915;
    background-image: url("assets/images/hero.jpg");
    background-position: right center;
    background-size: auto 100%;
}

.tt-hero::before {
    background: linear-gradient(90deg, #0c1915 0%, rgba(12, 25, 21, 0.92) 30%, rgba(12, 25, 21, 0.7) 52%, rgba(12, 25, 21, 0.1) 100%);
}

.tt-hero > * {
    width: 100%;
}

.tt-hero h1 {
    max-width: 700px;
}

.tt-hero-lead {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    line-height: 1.5;
    max-width: 560px;
    color: #f1eee8 !important;
}

.tt-hero-links a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

/* --- Inner page heroes --- */

.tt-page-hero {
    background-color: var(--wp--preset--color--accent-4);
    background-image: var(--tt-hero-img, none);
    background-position: center;
    background-size: cover;
}

.tt-page-hero::before {
    background: linear-gradient(90deg, rgba(12, 25, 21, 0.95) 0%, rgba(12, 25, 21, 0.85) 45%, rgba(12, 25, 21, 0.35) 100%);
}

.tt-page-hero h1 {
    max-width: 760px;
}

.tt-page-hero .tt-emergency {
    max-width: 560px;
}

.tt-page-hero--about { --tt-hero-img: url("assets/images/about.jpg"); }
.tt-page-hero--activities { --tt-hero-img: url("assets/images/scent.jpg"); }
.tt-page-hero--search { --tt-hero-img: url("assets/images/search.jpg"); }
.tt-page-hero--join { --tt-hero-img: url("assets/images/join.jpg"); }

/* --- Photos and icons --- */

.tt-photo img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 12px;
}

.tt-icon img {
    width: 40px;
    height: 40px;
    border-radius: 0 !important;
}

/* --- Activities --- */

.tt-activities > .wp-block-column:not(:last-child) {
    border-right: 1px solid #bcb7ae;
    padding-right: 40px;
}

/* --- "Ką daryti" on the front page --- */

.tt-how-grid {
    margin: 0 !important;
}

.tt-how-photo {
    background: url("assets/images/search.jpg") center / cover no-repeat;
    min-height: 560px;
}

/* Photo column as an image block (replace it in the editor: click the photo → Replace) */
.tt-how-photo-col {
    display: flex;
    flex-direction: column;
}

.tt-how-photo-col .tt-how-img {
    flex: 1;
    margin: 0;
    min-height: 560px;
}

.tt-how-photo-col .tt-how-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.tt-step {
    border-top: 1px solid #64766e;
    padding-top: 16px;
}

.tt-step p + p {
    color: #d1d9d3;
}

.tt-emergency {
    border: 1px solid var(--wp--preset--color--accent-2);
    border-radius: 8px;
}

.tt-emergency a {
    color: #f2c98f !important;
    font-weight: 700;
}

/* --- Join --- */

.tt-join {
    background-image: url("assets/images/join.jpg");
    background-position: right center;
    background-size: auto 100%;
}

.tt-join::before {
    background: linear-gradient(90deg, rgba(244, 240, 233, 0.98) 0%, rgba(244, 240, 233, 0.94) 55%, rgba(244, 240, 233, 0.12) 100%);
}

.tt-join-link {
    text-align: center;
}

.tt-join-link .wp-block-image {
    display: flex;
    justify-content: center;
}

.tt-join-link a {
    font-weight: 700;
    text-decoration: none;
}

/* --- Cards, lists, FAQ --- */

.tt-card {
    height: 100%;
}

ul.tt-checks {
    list-style: none;
    padding-left: 0;
}

ul.tt-checks li {
    position: relative;
    padding: 6px 0 6px 28px;
}

ul.tt-checks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.85em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--wp--preset--color--accent-3);
    border-bottom: 2px solid var(--wp--preset--color--accent-3);
    transform: rotate(-45deg);
}

ol.tt-steps {
    counter-reset: tt;
    list-style: none;
    padding-left: 0;
}

ol.tt-steps > li {
    counter-increment: tt;
    position: relative;
    padding: 16px 0 16px 56px;
    border-bottom: 1px solid var(--wp--preset--color--line);
}

ol.tt-steps > li:last-child {
    border-bottom: none;
}

ol.tt-steps > li::before {
    content: counter(tt, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 14px;
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--wp--preset--color--accent-3);
}

.tt-faq .wp-block-details {
    border-bottom: 1px solid var(--wp--preset--color--line);
    padding: 20px 0;
    margin: 0;
}

.tt-faq .wp-block-details summary {
    cursor: pointer;
    font-weight: 600;
}

.tt-faq .wp-block-details p {
    color: #4f5953;
    margin-top: 12px;
}

/* --- News cards --- */

.tt-post-card .wp-block-post-title a {
    text-decoration: none;
}

/* --- CTA band --- */

.tt-cta-btn .wp-block-buttons {
    justify-content: flex-end;
}

/* --- Footer --- */

.tt-footer {
    background:
        url("assets/images/treeline.svg") center top / 100% 140px no-repeat,
        linear-gradient(#14251f, #14251f) 0 140px / 100% 100% no-repeat,
        var(--wp--preset--color--accent-4);
}

.tt-footer p {
    color: #d9dfda;
}

.tt-footer strong {
    color: var(--wp--preset--color--base-2);
}

.tt-footer a:not(.wp-block-button__link) {
    color: #edc68f;
}

.tt-footer .tt-small {
    color: #bdc8c1;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 24px;
}

/* --- Mobile --- */

@media (max-width: 781px) {
    .tt-header-cta {
        display: none !important;
    }

    .tt-hero {
        min-height: 620px;
        background-position: center;
        background-size: cover;
    }

    .tt-hero::before {
        background: linear-gradient(rgba(12, 25, 21, 0.55), rgba(12, 25, 21, 0.88));
    }

    .tt-activities > .wp-block-column:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid var(--wp--preset--color--line);
        padding: 0 0 20px;
    }

    .tt-how-photo,
    .tt-how-photo-col .tt-how-img {
        min-height: 280px;
    }

    .tt-cta-btn .wp-block-buttons {
        justify-content: flex-start;
    }

    .tt-join {
        background-position: center;
        background-size: cover;
    }

    .tt-join::before {
        background: linear-gradient(90deg, rgba(244, 240, 233, 0.97), rgba(244, 240, 233, 0.86));
    }
}
