/*
 * Travelcare 2026 design system (prefix tc2-).
 * Shared by page-home-2.php and page-corporate-2.php; each template adds
 * only its own section styles inline. Motion follows the apple-design skill:
 * critically damped springs, feedback on press, one-shot reveals, and
 * reduced-motion / reduced-transparency / high-contrast fallbacks.
 */

/* ── Tokens ─────────────────────────────────────────────────────────── */
.tc2 {
	--navy: #1a2a44;
	--navy-2: #0f1d33;
	--red: #eb1f27;
	--red-press: #c8141b;
	--red-text: #d0141c;      /* red links: a touch darker for small text */
	--red-on-navy: #ff5258;   /* red labels on navy, legible at small sizes */
	--zavi: #00bca9;          /* Zavi teal: Zavi elements only */
	--zavi-ink: #00897c;      /* Zavi teal for fills under white text */
	--zavi-press: #00766b;
	--off: #f5f5f5;
	--sky: #eaf4fb;
	--line: #e3e8ef;
	--ink-2: #4a5970;
	--ink-3: #8592a6;
	--radius: 20px;
	--shadow-soft: 0 1px 2px rgba(26,42,68,.04), 0 8px 28px -12px rgba(26,42,68,.14);
	--shadow-lift: 0 2px 6px rgba(26,42,68,.05), 0 24px 48px -18px rgba(26,42,68,.26);
	/* Critically damped "spring" approximation (apple-design: damping 1.0) */
	--ease-spring: cubic-bezier(.32,.72,0,1);
	--ease-out: cubic-bezier(.22,.61,.36,1);
	--wrap: 1280px;
	--gap: 120px;             /* vertical rhythm between sections */
	font-family: 'Raleway', system-ui, sans-serif;
	color: var(--navy);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
body.tc2-body { margin: 0; }
html:has(body.tc2-body) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(body.tc2-body) { scroll-behavior: auto; } }
/* In-page jumps land below the sticky header */
.tc2 [id] { scroll-margin-top: 96px; }
.tc2 *, .tc2 *::before, .tc2 *::after { box-sizing: border-box; }
.tc2 :where(a) { color: inherit; text-decoration: none; }
.tc2 :where(img) { max-width: 100%; display: block; }
.tc2 :where(h1, h2, h3, h4, h5, h6, p, figure) { margin: 0; }
/* Headings follow their section's text colour (white on navy bands, navy on
   light ones). Beats the child theme's global `h1…h6 { color: navy }` in
   style.css, which otherwise hides titles on dark backgrounds. */
.tc2 :where(h1, h2, h3, h4, h5, h6) { color: inherit; font-family: inherit; }
.tc2 :where(ul) { list-style: none; margin: 0; padding: 0; }
.tc2-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.tc2-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.tc2 :focus-visible { outline: 3px solid var(--zavi); outline-offset: 3px; border-radius: 10px; }
.tc2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tc2-skip { position: absolute; left: -9999px; top: 8px; z-index: 9999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.tc2-skip:focus { left: 16px; }

/* ── Buttons & links: feedback on press, instantly (apple-design §1) ── */
.tc2-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
	font: 700 14px/1 'Raleway', sans-serif; letter-spacing: .06em; text-transform: uppercase;
	cursor: pointer; white-space: nowrap;
	transition: transform .4s var(--ease-spring), background-color .2s ease, box-shadow .3s ease, border-color .2s ease, color .2s ease;
}
.tc2-btn .tc2-icon { width: 20px; height: 20px; }
.tc2-btn .tc2-arrow { transition: transform .4s var(--ease-spring); }
.tc2-btn:hover .tc2-arrow { transform: translateX(4px); }
.tc2-btn .tc2-dl { transition: transform .4s var(--ease-spring); }
.tc2-btn:hover .tc2-dl { transform: translateY(2px); }
.tc2-btn:active { transform: scale(.97); transition-duration: .1s; }
.tc2-btn--zavi { background: var(--zavi-ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,137,124,.7); }
.tc2-btn--zavi:hover { background: var(--zavi-press); }
.tc2-btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(235,31,39,.7); }
.tc2-btn--red:hover { background: var(--red-press); }
.tc2-btn--line { background: #fff; color: var(--navy); border-color: var(--line); text-transform: none; letter-spacing: 0; font-size: 15px; }
.tc2-btn--line:hover { border-color: var(--navy); }
.tc2-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.tc2-btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.tc2-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--red-text); }
.tc2-link .tc2-icon { width: 18px; height: 18px; transition: transform .4s var(--ease-spring); }
a:hover .tc2-link .tc2-icon, a.tc2-link:hover .tc2-icon { transform: translateX(4px); }

/* ── Header: translucent material, content scrolls under (§12) ─────── */
.tc2-header {
	position: sticky; top: 0; z-index: 900;
	background: rgba(255,255,255,.84);
	-webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
	transition: box-shadow .3s ease;
}
.tc2-header.is-scrolled { box-shadow: 0 1px 0 rgba(26,42,68,.06), 0 8px 24px -16px rgba(26,42,68,.25); }
.tc2-header__in { height: 76px; display: flex; align-items: center; gap: 32px; }
.tc2-logo img {
	height: 40px; width: auto;
	/* White artwork tinted to Travelcare navy */
	filter: brightness(0) saturate(100%) invert(13%) sepia(30%) saturate(1600%) hue-rotate(190deg) brightness(92%);
}
.tc2-nav { flex: 1; display: flex; justify-content: center; }
.tc2-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); }
.tc2-nav a { position: relative; display: inline-block; font-weight: 600; font-size: 14.5px; padding: 6px 0; }
.tc2-nav a:not(.tc2-nav__corp)::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
	background: var(--red); transform: scaleX(0); transform-origin: left;
	transition: transform .4s var(--ease-spring);
}
.tc2-nav a:hover::after, .tc2-nav a.is-active::after { transform: scaleX(1); }
.tc2-nav .tc2-nav__corp { padding: 9px 18px; border: 1.5px solid var(--navy); border-radius: 999px; transition: background-color .2s ease, color .2s ease, transform .4s var(--ease-spring); }
.tc2-nav .tc2-nav__corp:hover, .tc2-nav .tc2-nav__corp.is-active { background: var(--navy); color: #fff; }
.tc2-nav .tc2-nav__corp:active { transform: scale(.97); transition-duration: .1s; }
.tc2-header .tc2-btn { min-height: 46px; padding: 0 22px; text-transform: none; letter-spacing: 0; font-size: 15px; }
.tc2-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.tc2-burger .tc2-icon { width: 28px; height: 28px; }

/* Mobile sheet: enters and exits along the same path (§7) */
.tc2-scrim { position: fixed; inset: 0; z-index: 950; background: rgba(15,29,51,.4); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.tc2-sheet {
	position: fixed; top: 0; right: 0; z-index: 960; height: 100dvh; width: min(360px, 88vw);
	background: #fff; padding: 20px 24px 32px; display: flex; flex-direction: column; gap: 8px;
	transform: translateX(100%); visibility: hidden;
	transition: transform .5s var(--ease-spring), visibility 0s linear .5s;
	box-shadow: -24px 0 60px -20px rgba(15,29,51,.35);
}
.tc2-menu-open .tc2-scrim { opacity: 1; pointer-events: auto; }
.tc2-menu-open .tc2-sheet { transform: translateX(0); visibility: visible; transition: transform .5s var(--ease-spring), visibility 0s; }
.tc2-sheet__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tc2-sheet nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--line); }
.tc2-sheet nav a[aria-current="page"] { color: var(--red-text); }
.tc2-sheet nav a .tc2-icon { color: var(--ink-3); }
.tc2-sheet .tc2-btn { margin-top: 20px; width: 100%; }

/* ── Sections ──────────────────────────────────────────────────────── */
.tc2-sec { padding: var(--gap) 0; }
.tc2-sec--off { background: var(--off); }
.tc2-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 40px; }
.tc2-h2 { font-size: clamp(30px, 2.8vw, 42px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.tc2-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); }
.tc2-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }

/* ── Why Travelcare: thin, quiet strip ─────────────────────────────── */
.tc2-why { padding: 44px 0; border-bottom: 1px solid var(--line); }
.tc2-why ul { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px 0; }
.tc2-why li { display: inline-flex; align-items: center; gap: 12px; padding: 0 clamp(20px, 3vw, 48px); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.tc2-why li + li { border-left: 1px solid var(--line); }
.tc2-why .tc2-icon { width: 26px; height: 26px; color: var(--ink-3); }

/* ── Footer ────────────────────────────────────────────────────────── */
.tc2-footer { background: var(--navy); color: rgba(255,255,255,.82); }
.tc2-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 56px; }
.tc2-footer__brand img { height: 40px; width: auto; }
.tc2-footer__brand p { margin-top: 14px; font-size: 14.5px; color: var(--red-on-navy); font-weight: 600; }
.tc2-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; padding-left: 32px; border-left: 1px solid rgba(255,255,255,.12); }
.tc2-footer__col a:hover { color: #fff; }
.tc2-footer__col span, .tc2-footer__col a { display: inline-flex; align-items: center; gap: 10px; }
.tc2-footer__col .tc2-icon { width: 20px; height: 20px; color: #fff; }
.tc2-footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: 13px; color: rgba(255,255,255,.6); }

/* ── Motion ────────────────────────────────────────────────────────── */
/* Content rises a short distance, critically damped: no overshoot on
   anything the user did not throw. */
@keyframes tc2-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tc2-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tc2-draw { from { stroke-dashoffset: 300; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }

/* Load-time stagger for a hero copy column: add data-tc2-stagger */
.tc2-js [data-tc2-stagger] > * { animation: tc2-rise .9s var(--ease-spring) both; }
.tc2-js [data-tc2-stagger] > :nth-child(2) { animation-delay: .06s; }
.tc2-js [data-tc2-stagger] > :nth-child(3) { animation-delay: .12s; }
.tc2-js [data-tc2-stagger] > :nth-child(4) { animation-delay: .18s; }
.tc2-js [data-tc2-stagger] > :nth-child(5) { animation-delay: .24s; }
.tc2-js [data-tc2-stagger] > :nth-child(6) { animation-delay: .3s; }

/* One-shot scroll reveal. tc2.js removes the attribute once the entrance
   settles, so hover/press springs then run without the stagger delay. */
.tc2-js [data-tc2-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease var(--d, 0s), transform .9s var(--ease-spring) var(--d, 0s); }
.tc2-js [data-tc2-reveal].is-in { opacity: 1; transform: none; }

/* Reduced motion: gentle cross-fades, no travel (§14) */
@media (prefers-reduced-motion: reduce) {
	.tc2-js [data-tc2-stagger] > * { animation: tc2-fade .3s ease both !important; }
	.tc2 *, .tc2 *::before, .tc2 *::after { transition-property: opacity, background-color, color, border-color, box-shadow !important; transition-duration: .2s !important; transition-delay: 0s !important; }
	.tc2-btn:hover .tc2-arrow, .tc2-btn:hover .tc2-dl, .tc2-link .tc2-icon { transform: none !important; }
	.tc2-js [data-tc2-reveal] { transform: none; }
	.tc2-sheet { transform: none; opacity: 0; }
	.tc2-menu-open .tc2-sheet { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
	.tc2-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ── Responsive (shared chrome) ────────────────────────────────────── */
@media (max-width: 1180px) {
	.tc2-nav ul { gap: 16px; }
	.tc2-nav a { font-size: 13.5px; }
	.tc2-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
	.tc2-footer__brand { grid-column: 1 / -1; }
	.tc2-footer__col:nth-child(2) { border-left: 0; padding-left: 0; }
}
@media (max-width: 1023px) {
	.tc2 { --gap: 88px; }
	.tc2-nav, .tc2-header .tc2-btn { display: none; }
	.tc2-burger { display: inline-flex; margin-left: auto; }
	.tc2-header__in { height: 66px; }
}
@media (max-width: 640px) {
	.tc2 { --gap: 72px; }
	.tc2-wrap { padding: 0 20px; }
	.tc2-logo img { height: 34px; }
	.tc2-why ul { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 0; }
	.tc2-why li { padding: 0 12px; font-size: 11.5px; gap: 8px; }
	.tc2-why li:nth-child(odd) { border-left: 0; }
	.tc2-footer__grid { grid-template-columns: 1fr; gap: 28px; padding: 56px 0 40px; }
	.tc2-footer__col { border-left: 0; padding-left: 0; }
}
