/* Calmer phones (Da, 26 Nov 2026: clients found the Service Pages "ตาลาย", too much in one place). Outside site.css
   for its budget; loaded on the Homepage, the six Service Pages and /portfolio/ (inc/hero.php), the pages with
   Price Cards, the logo strip and a Story. Every word stays in the page: lists fold, nothing is taken out. */

@media (max-width: 767px) {
	/* Price Card: what is included as a plain list, a hairline between rows, in place of the pills. */
	.price-card__features {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0;
	}
	.price-card__feature {
		width: 100%;
		padding: 10px 0;
		border: 0;
		border-bottom: 1px solid rgba(0, 47, 54, 0.08);
		border-radius: 0;
		background: none;
		text-align: left;
	}
	.price-card__feature:last-child {
		border-bottom: 0;
	}
	.price-card__feature--green {
		margin: 6px 0;
		padding: 8px 12px;
		border-radius: var(--radius-s);
		background-color: var(--c-green);
	}
	/* A list of more than ten folds to its first rows under "ดูรายการทั้งหมด" (template-parts/components/price-card.php),
	   the Story's fold (components/story.css, js/buttons.js): the bottom 48px fade out while folded. */
	.js-bg .price-card__fold {
		overflow: hidden;
		-webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent);
		mask-image: linear-gradient(#000 calc(100% - 48px), transparent);
		-webkit-mask-size: 100% calc(100% + 48px);
		mask-size: 100% calc(100% + 48px);
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
	}
	.js-bg .price-card__fold:not(.is-open) {
		max-height: 400px;
		-webkit-mask-position: 0 -48px;
		mask-position: 0 -48px;
	}
	.price-card__more {
		align-self: flex-start;
		min-height: 44px;
		margin: 4px 24px 0;
	}

	/* The client logo strip in colour and larger (56px tall). */
	.logo-bw-carousel-item {
		flex: 0 0 140px;
		height: 56px;
		margin: 0 10px;
	}
	.logo-bw-carousel-item img {
		filter: none;
		opacity: 1;
	}

	/* The Story's Motion Art stays on computers and tablets only on /e-commerce/; /corporate-website/'s shows on phones too
	   (Da, 26 Nov 2026: "Corporate - show the art art--corporate story__art is-on on mobile"). */
	.story__art:not(.art--corporate) {
		display: none;
	}
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
	.js-bg .price-card__fold {
		transition: max-height 0.6s cubic-bezier(0.45, 0, 0.2, 1), -webkit-mask-position 0.6s cubic-bezier(0.45, 0, 0.2, 1), mask-position 0.6s cubic-bezier(0.45, 0, 0.2, 1);
	}
}

/* Line Box: the line over the LINE Button and the button in a box in LINE's green, in the six Service Page heroes (Da,
   26 Nov 2026: /renovate-website/'s first, "change to var(--c-line)", then "apply it ... to other services page as well";
   the hero-offer class in each 01-hero.php). The line and its arrow the heroes' white (components/hero-sky.css), not
   highlighted; the button the White LINE Button with its green logo and words. */
.hero-offer {
	width: fit-content;
	padding: 20px 28px 24px;
	border-radius: var(--radius-xl);
	background: var(--c-line);
	box-shadow: var(--shadow-panel);
}
@media (max-width: 478px) {
	.hero-offer {
		padding: 16px 20px 20px;
	}
}

/* Every word of the hero in FC Vision: its badge, lead, Line Box, button, points and the Project Wall's names (Da, 26 Nov
   2026: "hero - make all fc vision for all 6 services + homepage"), though the rest of the page reads in Anuphan (--font,
   src/tokens.css). Set on each hero's root, as they share no class: the Homepage's Section and each Service Page's group
   (its 01-hero.php); --font too, for the rules that name it. FC Vision Regular is preloaded on these pages (inc/assets.php). */
:is(.home-hero, .corp-hero__group, .ecom-hero__group, .estate-hero__group, .renovate-hero__group, .fix-hero__group, .wp-hero__group) {
	--font: FCIconic, sans-serif;
	font-family: FCIconic;
}
/* In FC Vision the leads of /corporate-website/ and /wordpress-fix/ no longer fit their words column between 992 and
   1199 px, so each of Da's desktop lines left a short line under it (Da, 26 Nov 2026: "Yes, fix them", the ต่อย / อด
   and Out alone at 1024). Letting the lines wrap, as e-commerce.css and wordpress-solutions.css do, still split ต่อยอด
   or left จุด alone at some widths; so the words column is at least as wide as the longest line (about 485 and 466 px)
   and the picture beside it gives way, up to 11% smaller at 992. From 1200 nothing changes. */
@media (min-width: 992px) and (max-width: 1199px) {
	.corp-hero__head {
		flex-shrink: 0;
		width: max(45%, 490px);
	}
	.fix-hero__head {
		flex-shrink: 0;
		width: max(43%, 470px);
	}
}

/* Why Compare's white DESIGN BY DA logo, on its white box (Da, 26 Nov 2026): in ink. */
.home-why__image {
	filter: brightness(0) invert(70%) sepia(61%) saturate(5984%) hue-rotate(148deg) brightness(37%) contrast(135%);
}

/* /e-commerce/'s Customer Journey Story, hidden as an experiment (Da, 26 Nov 2026; `hidden` in
   template-parts/sections/e-commerce/04-service.php): the Story's own display would show it. */
.story[hidden] {
	display: none;
}

/* /e-commerce/'s FAQ groups (template-parts/components/faq.php 'groups', assets/js/accordion.js; Da, 26 Nov 2026): the
   Tabs' pill bar (components/tabs.css), the button of the group on show teal. Hidden until the script has run. */
.faq__groups {
	margin: 4px 0 8px;
}
.faq__groups[hidden] {
	display: none;
}
.faq__groups .tabs__tab[aria-pressed="true"] {
	color: var(--c-white);
}
.faq__groups .tabs__tab[aria-pressed="true"]::before {
	background-color: var(--c-teal);
}
