/* Fleet Method Core: form, booking, consent banner. Uses theme.json variables with safe fallbacks. */

.tfm-form { --tfm-line: var(--wp--preset--color--line, #D9DDD5); --tfm-green: var(--wp--preset--color--green, #23483F); margin-top: 1.25rem; }
.tfm-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.tfm-field { margin: 0 0 1.1rem; }
.tfm-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .tfm-form__grid { grid-template-columns: 1fr; } }

.tfm-form label, .tfm-form legend { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; color: var(--wp--preset--color--charcoal, #343A39); }
.tfm-optional { font-weight: 400; color: var(--wp--preset--color--muted, #5B6462); }
.tfm-form input[type="text"], .tfm-form input[type="email"], .tfm-form input[type="tel"], .tfm-form input[type="password"], .tfm-form input[type="number"], .tfm-form input[type="date"], .tfm-form input[type="url"], .tfm-form select, .tfm-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: inherit;
	padding: .75rem .85rem; background: #fff; border: 1px solid #B9C0B8; border-radius: 4px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tfm-form textarea { resize: vertical; min-height: 8rem; }
.tfm-form input:focus, .tfm-form select:focus, .tfm-form textarea:focus { outline: none; border-color: var(--tfm-green); box-shadow: 0 0 0 3px rgba(35, 72, 63, .18); }
.tfm-form [aria-invalid="true"] { border-color: #A3352B; }
.tfm-field-error { color: #A3352B; font-size: .8125rem; margin: .35rem 0 0; }
.tfm-form input[type="checkbox"][aria-invalid="true"] { outline: 2px solid #A3352B; outline-offset: 2px; }
.tfm-agree--error { padding: .75rem .85rem; border: 1px solid #A3352B; border-radius: 4px; background: #FBEFED; }
.tfm-agree--error label { color: #6E231C; }

.tfm-checks { border: 0; padding: 0; margin: .25rem 0 1.25rem; }
.tfm-checks label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: 0 0 .5rem; font-size: .9375rem; }
.tfm-checks input, .tfm-agree input { accent-color: var(--tfm-green); width: 1.05rem; height: 1.05rem; margin-top: .2rem; flex: none; }
.tfm-agree label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .875rem; color: var(--wp--preset--color--muted, #5B6462); }

.tfm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tfm-form__submit { margin: 1.5rem 0 0; }
.tfm-form button[type="submit"] { cursor: pointer; }

.tfm-form-errors { border: 1px solid #E3B7B1; background: #FBEFED; color: #6E231C; border-radius: 4px; padding: .9rem 1.1rem; margin-bottom: 1.25rem; font-size: .9375rem; }
.tfm-form-errors p { margin: 0 0 .25rem; }
.tfm-form-errors p:last-child { margin: 0; }
.tfm-form-errors ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.tfm-form-errors li { margin: 0 0 .2rem; }
.tfm-form-errors a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.tfm-form-errors:focus { outline: 2px solid #A3352B; outline-offset: 2px; }

.tfm-form-success, .tfm-booking-pending { border: 1px solid var(--wp--preset--color--sage, #B7C7BF); background: var(--wp--preset--color--sage-light, #E4EBE6); border-radius: 4px; padding: 1.5rem; margin-top: 1rem; }
.tfm-form-success__title, .tfm-booking-pending__title { font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: 1.375rem; color: var(--wp--preset--color--green-dark, #1A3630); margin: 0 0 .5rem; }
.tfm-form-success:focus { outline: 2px solid var(--wp--preset--color--green, #23483F); outline-offset: 3px; }

.tfm-calendly { background: var(--wp--preset--color--paper, #FCFBF7); border: 1px solid var(--wp--preset--color--line, #D9DDD5); border-radius: 4px; overflow: hidden; }
.tfm-calendly__fallback { font-size: .8125rem; padding: .75rem 1rem; margin: 0; border-top: 1px solid var(--wp--preset--color--line, #D9DDD5); }

.tfm-contact-list { list-style: none; padding: 0; margin: 0; }
.tfm-contact-list li { margin: 0 0 .5rem; }
.tfm-contact-label { display: inline-block; min-width: 3.5rem; font-size: .9rem; color: var(--tfm-muted, #5B6462); }

.tfm-consent {
	position: fixed; z-index: 100; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem;
	background: var(--wp--preset--color--paper, #FCFBF7); color: var(--wp--preset--color--charcoal, #343A39);
	border: 1px solid var(--wp--preset--color--line, #D9DDD5); border-radius: 6px;
	box-shadow: 0 18px 50px -20px rgba(26, 54, 48, .45); padding: 1.1rem 1.25rem; font-size: .875rem;
}
.tfm-consent[hidden] { display: none; }
.tfm-consent p { margin: 0 0 .9rem; }
.tfm-consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.tfm-consent__actions .wp-element-button { cursor: pointer; padding: .6rem 1rem; }
.tfm-consent__decline { background: transparent !important; color: var(--wp--preset--color--green, #23483F) !important; }

/* ---------- Photo slides (hero) ---------- */
.elementor-widget-tfm-hero-slides, .elementor-widget-tfm-hero-slides > .elementor-widget-container { width: 100%; }
.tfm-slides { position: relative; width: 100%; overflow: hidden; border-radius: 16px; background: #1A3630; box-shadow: 0 30px 60px -30px rgba(26,54,48,.5); isolation: isolate; }
.tfm-slides::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(180deg, rgba(26,54,48,0), rgba(26,54,48,.55)); z-index: 2; pointer-events: none; }
.tfm-slides__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.tfm-slides__slide.is-active { opacity: 1; z-index: 1; }
.tfm-slides .tfm-slides__slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.02); }
.tfm-slides .tfm-slides__slide.is-active img { animation: tfm-kb calc(var(--tfm-slide-s, 6s) + 2s) ease-out forwards; }
@keyframes tfm-kb { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.tfm-slides__controls { position: absolute; left: 18px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.tfm-slides__dots { display: flex; gap: 8px; }
.tfm-slides__dot { position: relative; appearance: none; border: 0; padding: 0; width: 26px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s ease, width .2s ease; }
.tfm-slides__dot::before { content: ""; position: absolute; inset: -10px -4px; }
.tfm-slides__dot:hover { background: rgba(255,255,255,.8); }
.tfm-slides__dot.is-active { background: #fff; width: 40px; }
.tfm-slides__toggle { appearance: none; border: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(26,54,48,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.tfm-slides__toggle span { display: block; width: 9px; height: 11px; border-left: 3px solid #fff; border-right: 3px solid #fff; box-sizing: border-box; }
.tfm-slides__toggle.is-paused span { width: 0; height: 0; border: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid #fff; margin-left: 2px; }
.tfm-slides__toggle:hover { background: rgba(26,54,48,.8); }
.tfm-slides__toggle:focus-visible, .tfm-slides__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tfm-slides__slide { transition: none; } .tfm-slides__slide.is-active img { animation: none; } }

/* ---------- Photo mosaic ---------- */
.elementor-widget-tfm-mosaic, .elementor-widget-tfm-mosaic > .elementor-widget-container { width: 100%; }
.tfm-mosaic { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.tfm-mosaic__item { position: relative; margin: 0; min-height: 0; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 14px; background: #E4EBE6; }
.tfm-mosaic .tfm-mosaic__item img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tfm-mosaic__item--1 { grid-column: 1 / -1; }
.tfm-mosaic--n2 .tfm-mosaic__item--1 { grid-column: auto; }
@media (max-width: 560px) { .tfm-mosaic { gap: 8px; } }

/* ---------- Photo filmstrip ---------- */
.elementor-widget-tfm-filmstrip, .elementor-widget-tfm-filmstrip > .elementor-widget-container { width: 100%; max-width: 100%; min-width: 0; }
.tfm-film { position: relative; }
.tfm-film__track { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; outline-offset: 4px; }
.tfm-film__track::-webkit-scrollbar { display: none; }
.tfm-film__track.is-grabbing { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.tfm-film__item { flex: 0 0 clamp(250px, 29vw, 380px); margin: 0; scroll-snap-align: start; }
.tfm-film__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; max-width: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tfm-film__item figcaption { margin-top: .6rem; font-size: .9rem; color: var(--wp--preset--color--muted, #5B6462); }
.tfm-film__nav { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.tfm-film__btn { appearance: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--wp--preset--color--line, #D9DDD5); background: #fff; color: var(--wp--preset--color--green, #23483F); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease, opacity .15s ease; }
.tfm-film__btn:hover:not(:disabled) { background: var(--wp--preset--color--green, #23483F); border-color: var(--wp--preset--color--green, #23483F); color: #fff; }
.tfm-film__btn:disabled { opacity: .35; cursor: default; }
.tfm-film__btn:focus-visible { outline: 2px solid var(--wp--preset--color--green, #23483F); outline-offset: 3px; }
.tfm-film__btn span { width: 10px; height: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 4px; }
.tfm-film__btn--next span { transform: rotate(-135deg); margin-left: -4px; }
@media (prefers-reduced-motion: reduce) { .tfm-film__track { scroll-behavior: auto; } .tfm-film__item img { transition: none; } }

/* Working hours chart ([tfm_hours] / Working hours widget): one row per day, 24-hour track, standard window drawn in. */
.tfm-hours { --tfm-hours-day: 3.1rem; --tfm-hours-time: 8.5rem; }
.tfm-hours__days { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.tfm-hours__row, .tfm-hours__scale { display: grid; grid-template-columns: var(--tfm-hours-day) minmax(0, 1fr) var(--tfm-hours-time); align-items: center; column-gap: 1rem; margin: 0; }
.tfm-hours__day { font-weight: 600; font-size: .9rem; color: #1A3630; }
.tfm-hours__track { position: relative; height: 12px; border-radius: 999px; background-color: #EEF1EC; background-image: linear-gradient(90deg, transparent calc(25% - .5px), rgba(26, 54, 48, .14) calc(25% - .5px), rgba(26, 54, 48, .14) calc(25% + .5px), transparent calc(25% + .5px), transparent calc(50% - .5px), rgba(26, 54, 48, .14) calc(50% - .5px), rgba(26, 54, 48, .14) calc(50% + .5px), transparent calc(50% + .5px), transparent calc(75% - .5px), rgba(26, 54, 48, .14) calc(75% - .5px), rgba(26, 54, 48, .14) calc(75% + .5px), transparent calc(75% + .5px)); }
.tfm-hours__window { position: absolute; top: 0; bottom: 0; left: calc(var(--from) * 100%); width: calc((var(--to) - var(--from)) * 100%); border-radius: 999px; background: linear-gradient(90deg, #23483F, #31614F); box-shadow: 0 4px 10px -4px rgba(26, 54, 48, .55); transform-origin: left center; transition: transform 1s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 90ms + 250ms); }
.tfm-js .tfm-hours.tfm-reveal:not(.is-in) .tfm-hours__window { transform: scaleX(0); }
.elementor-editor-active .tfm-hours__window { transform: none !important; }
.tfm-hours__time { justify-self: end; white-space: normal; text-align: right; overflow-wrap: anywhere; font-size: .875rem; color: #343A39; font-variant-numeric: tabular-nums lining-nums; }
.tfm-hours__row.is-limited .tfm-hours__day, .tfm-hours__row.is-limited .tfm-hours__time { color: #5B6462; font-weight: 500; }
.tfm-hours__row.is-limited .tfm-hours__track { background: transparent; box-shadow: inset 0 0 0 1px #D9DDD5; }
.tfm-hours__row.is-limited .tfm-hours__time { font-style: italic; }
.tfm-hours__scale { margin-top: .55rem; }
.tfm-hours__ticks { position: relative; height: 1rem; font-size: .7rem; letter-spacing: .02em; color: #5B6462; }
.tfm-hours__ticks span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.tfm-hours__ticks span:nth-child(1) { left: 0; transform: none; }
.tfm-hours__ticks span:nth-child(2) { left: 25%; }
.tfm-hours__ticks span:nth-child(3) { left: 50%; }
.tfm-hours__ticks span:nth-child(4) { left: 75%; }
.tfm-hours__ticks span:nth-child(5) { left: auto; right: 0; transform: none; }
/* The chart sits in a column whose width does not follow the screen, so the scale decides by its own width: below this it keeps only the labels that fit. */
.tfm-hours { container-type: inline-size; }
@container (max-width: 34rem) { .tfm-hours__ticks span:nth-child(2), .tfm-hours__ticks span:nth-child(4) { display: none; } }
.tfm-hours--text .tfm-hours__row { grid-template-columns: var(--tfm-hours-day) 0 minmax(0, 1fr); }
.tfm-hours--text .tfm-hours__time { justify-self: start; text-align: left; }
@media (max-width: 480px) {
	.tfm-hours { --tfm-hours-day: 2.3rem; --tfm-hours-time: 6.4rem; }
	.tfm-hours__row, .tfm-hours__scale { column-gap: .6rem; }
	.tfm-hours__time { font-size: .76rem; }
	.tfm-hours__ticks span:nth-child(2), .tfm-hours__ticks span:nth-child(4) { display: none; }
}

/* Notice under the business hours (chart, Contact details widget, [tfm_hours chart="0"]). */
.tfm-hours-notice { position: relative; margin: 1.1rem 0 0; padding: .85rem 1rem .85rem 2.7rem; border-radius: 12px; background: #EDF1ED; color: #343A39; font-size: .875rem; line-height: 1.55; }
.tfm-hours-notice::before { content: ""; position: absolute; left: .9rem; top: .95rem; width: 1.15rem; height: 1.15rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323483F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.2'/%3E%3Cpath d='M12 6.8V12l3.4 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.tfm-hours-notice p { margin: 0; }
.tfm-hours-notice__hours { margin-bottom: .2rem !important; font-weight: 600; color: #1A3630; }
.tfm-hours__tz { justify-self: end; font-size: .75rem; color: #5B6462; }
.tfm-contact-more { display: block; margin: .15rem 0 0 3.5rem; font-size: .85rem; }

/* Services overview: one card per service, one below the other. */
.tfm-svc-index { display: grid; gap: 1.75rem; width: 100%; }
.tfm-svc-index__label { margin: 0 0 .65rem; font-size: .95rem; font-weight: 600; letter-spacing: .01em; color: inherit; }
.tfm-svc-index__list { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: .6rem; }
.tfm-svc-index__list li { margin: 0; }
.tfm-svc-index__row { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); align-items: center; gap: 1.15rem; padding: .55rem .95rem .55rem .55rem; border-radius: 14px; background: #FFFFFF; text-decoration: none; box-shadow: 0 1px 2px rgba(26, 54, 48, .08); transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease; }
.tfm-svc-index__row:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -26px rgba(10, 30, 25, .75); }
.tfm-svc-index__row:focus-visible { outline: 2px solid #F7F5EE; outline-offset: 2px; box-shadow: 0 0 0 2px #23483F; }
.tfm-svc-index__thumb { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: #E4EBE6; }
.tfm-svc-index .tfm-svc-index__thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tfm-svc-index__text { display: block; min-width: 0; }
.tfm-svc-index__title { display: block; font-family: var(--tfm-serif, Georgia, serif); font-size: clamp(1.08rem, 1.5vw, 1.3rem); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; color: #1A3630; }
.tfm-svc-index__summary { display: -webkit-box; margin-top: .2rem; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .9rem; line-height: 1.45; color: #5B6462; }
@media (max-width: 640px) {
	.tfm-svc-index__row { grid-template-columns: 4.5rem minmax(0, 1fr); gap: .8rem; padding: .5rem .7rem .5rem .5rem; }
	.tfm-svc-index__summary { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tfm-svc-index__row { transition: none; } .tfm-svc-index__row:hover { transform: none; } }
