/* Home page: hero with two buttons, gallery strip, education timeline, map link in the contacts.
   Taken over from the start page draft in profigroom-v2 (css/v2.css), adapted to portrait photos. */

/* ---------- "Groomer - Uliana Sukhorukova": a strip right under the menu, fixed with it. Below the header box, under
   the opened phone menu (z-index -1 inside the header's stacking context) */
.name-bar { position: absolute; top: 100%; left: 0; right: 0; z-index: -1; margin: 0; padding: 6px 16px;
    background: #054d4c; color: #fff; text-align: center; text-transform: uppercase; font-size: 13px;
    font-weight: 600; letter-spacing: .18em; line-height: 1.4; }

/* ---------- hero: the static H1 says what the salon is; the rotating line under it is now an h2 and keeps the look
   it had as the H1 (style.css ".intro h1", responsive.css "h1.ah-headline") */
/* One phrase per line: in a single line the last phrase ran over the white poodle and could not be read. The " · "
   between them stays in the text for search engines, the line breaks replace it on screen. */
.welcome-text .hero-title { color: #fff; text-transform: uppercase; font-size: 24px; font-weight: 500; line-height: 1.35;
    margin: 0 0 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.welcome-text .hero-title span { display: block; }
.welcome-text .hero-title .sep { display: none; }
.welcome-text .intro h2.ah-headline { color: #fcc6ac; font-size: 50px; font-weight: 400; margin: 0; text-transform: uppercase; }
@media (max-width: 767px) {
    .name-bar { font-size: 11px; letter-spacing: .1em; padding: 5px 12px; }
    .welcome-text .hero-title { font-size: clamp(16px, 5.4vw, 22px); }
    .welcome-text .intro h2.ah-headline { font-size: clamp(18px, 6.6vw, 25px); }
}
@media (min-width: 600px) and (max-width: 767px) {
    .welcome-text .intro h2.ah-headline { font-size: 40px; }
}

/* ---------- hero: two buttons instead of "Kontakt", the academy button centred under them */
.banner-actions { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 25px; max-width: 100%; }
.banner-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.banner-actions .banner-btn { margin-top: 0; min-height: 50px; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff; font-size: 15px; max-width: 100%; white-space: normal; text-align: center; }
.banner-actions .banner-btn:hover, .banner-actions .banner-btn:focus { background: #fff; color: #054d4c; }

/* ---------- Services: the price links look like the "Preise" button in Über mich (.about-text-left a) */
.single-services .service-price { margin: 18px 0 0; }
.single-services .service-price a { display: inline-block; color: #fff; font-size: 14px; font-weight: 400; letter-spacing: 0;
    text-transform: uppercase; background: #054d4c; padding: 10px 25px; text-decoration: none;
    border-radius: 50px; border: 2px solid #054d4c; line-height: 1.7; }
.single-services .service-price a:hover, .single-services .service-price a:focus { background: transparent; color: #000;
    text-decoration: none; }
/* the theme sizes every icon in a service card like the old 50px card icons (.single-services i) */
.single-services .service-price i { font-size: inherit; height: auto; line-height: inherit; padding: 0; }
/* ...and turns it red without padding when the card is hovered; keep the button's arrow as it is */
.single-services:hover .service-price i { color: inherit; padding: 0; font-weight: normal; }

/* the card icon links to the same price section as the button */
.single-services .service-icon { display: inline-block; border-radius: 10px; }
.single-services .service-icon img { transition: transform .2s; }
.single-services .service-icon:hover img { transform: scale(1.06); }

/* price buttons on one line: equal-height cards, button pushed to the bottom (from tablet width up) */
@media (min-width: 768px) {
    /* in the flex column text-align no longer centres the icon */
    .services-row .single-services > img, .services-row .single-services > .service-icon { align-self: center; }
    .services-row { display: flex; flex-wrap: wrap; }
    .services-row::before, .services-row::after { display: none; } /* Bootstrap clearfix would become flex items */
    .services-row > [class*="col-"] { display: flex; }
    .services-row .single-services { display: flex; flex-direction: column; width: 100%; }
    .services-row .single-services .service-price { margin-top: auto; padding-top: 12px; }
}

/* ---------- gallery strip: the photos twice in a row, the track moves by half its width */
.gallery-strip { overflow: hidden; margin-top: 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gallery-strip-track { display: flex; gap: 16px; width: max-content; margin: 0; padding: 0; list-style: none;
    animation: gallery-strip 50s linear infinite; }
.gallery-strip:hover .gallery-strip-track, .gallery-strip:focus-within .gallery-strip-track { animation-play-state: paused; }
@keyframes gallery-strip { to { transform: translateX(-50%); } }
.gallery-strip a { display: block; width: 240px; height: 320px; border-radius: 16px; overflow: hidden; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gallery-strip a:hover img, .gallery-strip a:focus img { transform: scale(1.04); }
.gallery-strip a:focus-visible { outline: 3px solid #fcc6ac; outline-offset: -3px; }
.gallery-insta { margin: 20px 0 0; text-align: center; font-size: 15px; }
.gallery-insta a { font-weight: 600; color: #016e75; }
@media (prefers-reduced-motion: reduce) {
    .gallery-strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .gallery-strip-track { animation: none; }
    .gallery-strip img { transition: none; }
}

/* ---------- Über mich: education and further training as a timeline */
.timeline-title { margin: 64px 0 28px; text-align: center; font-size: 20px; font-weight: 700; text-transform: uppercase; color: #222; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; text-align: left; }
.timeline > li { display: flex; flex-wrap: wrap; gap: 20px 28px; padding: 0 0 36px; }
.timeline-when { flex: 0 0 120px; }
.timeline-when b { display: block; font-size: 22px; font-weight: 700; color: #016e75; }
.timeline-when span { font-size: 12px; font-weight: 600; text-transform: uppercase; color: #8e3e20; }
.timeline-what { flex: 999 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; padding-left: 28px; border-left: 2px solid #dce6e6; }
.timeline-what img { flex: 0 0 200px; width: 200px; height: 150px; object-fit: cover; border-radius: 12px; }
.timeline-what > div { flex: 999 1 260px; min-width: 0; }
.timeline-what h4 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #222; }
.timeline-what p { margin: 0 0 8px; font-size: 14px; line-height: 1.65; color: #6f6f6f; }

/* ---------- Uliana Academy: preview on the home page, the full text is on academy.html */
.academy-sub { margin: 0 auto 10px; text-align: center; font-size: 17px; font-weight: 600; color: #016e75; }
.academy-intro { max-width: 760px; margin: 0 auto 18px; text-align: center; color: #6f6f6f; }
.academy-facts { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.academy-facts li { background: #016e75; color: #fff; border-radius: 20px; padding: 4px 14px; font-size: 14px; }
.academy-more { margin: 28px 0 0; text-align: center; }
.academy-more a { display: inline-block; color: #fff; font-size: 14px; text-transform: uppercase; background: #054d4c;
    padding: 10px 25px; text-decoration: none; border-radius: 50px; border: 2px solid #054d4c; line-height: 1.7; }
.academy-more a:hover, .academy-more a:focus { background: transparent; color: #000; text-decoration: none; }

/* text still to come from Uliana: impossible to overlook, and tools/make-deploy-zip.sh refuses to pack it */
.placeholder { display: inline-block; background: #fbede6; color: #8e3e20; border: 1px dashed #8e3e20;
    border-radius: 8px; padding: 1px 10px; font-size: 14px; }

/* ---------- Kontakt: link to the map under the address */
.top-contact-text .map-link { display: inline-block; margin-top: 6px; font-weight: 600; color: #016e75; }
/* the labels (Adresse, Öffnungszeiten, ...) are h3 under the "Kontakt" h2; same look as the theme's h2 labels */
.top-contact-text h3 { margin-top: 2px; margin-bottom: 5px; text-transform: uppercase; font-weight: 600;
    font-size: 12px; letter-spacing: 3px; }
/* the theme gives these list items the 25px right margin of a social-icon row, which pushed the
   single diamond icon off centre */
.top-contact-text .contact-icon li { margin-right: 0; }

@media (max-width: 767px) {
    .gallery-strip a { width: 180px; height: 240px; }
    .timeline-what { padding-left: 16px; }
    .timeline-what img { flex-basis: 100%; width: 100%; height: auto; aspect-ratio: 4 / 3; }
}
