/*
Theme Name: TravelConcern
Theme URI: https://travelconcern.pk
Author: Ali Silat
Description: Lightweight theme for TravelConcern. Templates own the page structure and heading hierarchy.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: travelconcern
*/

/* ---------- fonts ---------- */
@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/manrope-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/manrope-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/manrope-latin-700-normal.woff2) format("woff2"); }
/* Arial sized to Manrope (measured: 1.5% wider; ascent 1.066em, descent 0.30em), so text does not
   reflow when Manrope arrives on a slow phone (the compare page shifted 44px: CLS 0.13). */
@font-face { font-family: "Manrope Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 101%; ascent-override: 105.5%; descent-override: 29.7%; line-gap-override: 0%; }

/* ---------- tokens ---------- */
:root {
	--tc-navy: #003049;
	--tc-navy-deep: #02324d;
	--tc-green: #2d9b6f;
	--tc-green-dark: #13612e;
	--tc-orange: #f4a12e;
	--tc-ink: #1a2e35;
	--tc-grey-700: #4a5568;
	--tc-grey-500: #718096;
	--tc-link: #247c58; /* --tc-green darkened to pass 4.5:1 as text on white and #f7f9f8 */
	--tc-grey-200: #edf2f7;
	--tc-grey-100: #f7fafc;
	--tc-bg: #f7f9f8;
	--tc-white: #fff;
	--tc-radius: 5px;
	--tc-wrap: 1400px;
	--tc-gutter: 16px;
	--tc-font: Manrope, "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Kadence colours (--global-palette1…15) come from TC_KADENCE_PALETTE in inc/assets.php */
	--global-palette-highlight: var(--tc-orange);
	--global-palette-highlight-alt: var(--tc-green);
	--global-palette-btn-bg: var(--tc-green);
	--global-palette-btn-bg-hover: var(--tc-green-dark);
	--global-palette-btn: #fff;
	--global-palette-btn-hover: #fff;
	--global-body-font-family: var(--tc-font);
	--global-heading-font-family: var(--tc-font);
	--global-content-width: var(--tc-wrap);
	--global-content-edge-padding: var(--tc-gutter);
}
.has-theme-palette-1-color, .has-theme-palette1-color { color: var(--global-palette1); } .has-theme-palette-1-background-color, .has-theme-palette1-background-color { background-color: var(--global-palette1); }
.has-theme-palette-2-color, .has-theme-palette2-color { color: var(--global-palette2); } .has-theme-palette-2-background-color, .has-theme-palette2-background-color { background-color: var(--global-palette2); }
.has-theme-palette-3-color, .has-theme-palette3-color { color: var(--global-palette3); } .has-theme-palette-3-background-color, .has-theme-palette3-background-color { background-color: var(--global-palette3); }
.has-theme-palette-4-color, .has-theme-palette4-color { color: var(--global-palette4); } .has-theme-palette-4-background-color, .has-theme-palette4-background-color { background-color: var(--global-palette4); }
.has-theme-palette-5-color, .has-theme-palette5-color { color: var(--global-palette5); } .has-theme-palette-5-background-color, .has-theme-palette5-background-color { background-color: var(--global-palette5); }
.has-theme-palette-6-color, .has-theme-palette6-color { color: var(--global-palette6); } .has-theme-palette-6-background-color, .has-theme-palette6-background-color { background-color: var(--global-palette6); }
.has-theme-palette-7-color, .has-theme-palette7-color { color: var(--global-palette7); } .has-theme-palette-7-background-color, .has-theme-palette7-background-color { background-color: var(--global-palette7); }
.has-theme-palette-8-color, .has-theme-palette8-color { color: var(--global-palette8); } .has-theme-palette-8-background-color, .has-theme-palette8-background-color { background-color: var(--global-palette8); }
.has-theme-palette-9-color, .has-theme-palette9-color { color: var(--global-palette9); } .has-theme-palette-9-background-color, .has-theme-palette9-background-color { background-color: var(--global-palette9); }
.has-theme-palette-10-color, .has-theme-palette10-color { color: var(--global-palette10); } .has-theme-palette-10-background-color, .has-theme-palette10-background-color { background-color: var(--global-palette10); }
.has-theme-palette-11-color, .has-theme-palette11-color { color: var(--global-palette11); } .has-theme-palette-11-background-color, .has-theme-palette11-background-color { background-color: var(--global-palette11); }
.has-theme-palette-12-color, .has-theme-palette12-color { color: var(--global-palette12); } .has-theme-palette-12-background-color, .has-theme-palette12-background-color { background-color: var(--global-palette12); }
.has-theme-palette-13-color, .has-theme-palette13-color { color: var(--global-palette13); } .has-theme-palette-13-background-color, .has-theme-palette13-background-color { background-color: var(--global-palette13); }
.has-theme-palette-14-color, .has-theme-palette14-color { color: var(--global-palette14); } .has-theme-palette-14-background-color, .has-theme-palette14-background-color { background-color: var(--global-palette14); }
.has-theme-palette-15-color, .has-theme-palette15-color { color: var(--global-palette15); } .has-theme-palette-15-background-color, .has-theme-palette15-background-color { background-color: var(--global-palette15); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; overflow-x: clip; background: var(--tc-bg); color: var(--tc-ink); font: 400 17px/1.5 var(--tc-font); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--tc-link); text-underline-offset: 2px; }
a:hover { color: var(--tc-green-dark); }
:focus-visible { outline: 3px solid var(--tc-orange); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--tc-ink); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.125rem, 1.3rem + 3.4vw, 3.75rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.5rem); }
p, ul, ol, table { margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; background: var(--tc-white); }
th, td { padding: .6em .8em; border: 1px solid var(--tc-grey-200); text-align: left; vertical-align: top; }
th { background: var(--tc-grey-100); font-weight: 700; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tc-skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 16px; background: var(--tc-white); color: var(--tc-navy); }
.tc-skip:focus { left: 16px; top: 8px; }
.tc-wrap { width: 100%; max-width: calc(var(--tc-wrap) + 2 * var(--tc-gutter)); margin-inline: auto; padding-inline: var(--tc-gutter); }
.tc-narrow > * { max-width: 800px; }
.tc-icon { flex: none; width: 24px; height: 24px; }

/* ---------- buttons ---------- */
/* navy text on orange: 6.8:1 (white was 2.1:1, below the 4.5 minimum); matches the form's Continue button */
.tc-btn, .wp-block-button__link { display: inline-block; padding: 12px 22px; border: 0; border-radius: var(--tc-radius); background: var(--tc-orange); color: var(--tc-navy); font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.tc-btn:hover, .wp-block-button__link:hover { background: var(--tc-green); color: var(--tc-white); }

/* ---------- header ---------- */
.tc-header { position: sticky; top: 0; z-index: 50; background: var(--tc-navy); color: var(--tc-white); }
.admin-bar .tc-header { top: 32px; }
.tc-header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.tc-logo { margin-right: auto; }
.tc-logo a { display: block; color: var(--tc-white); font-weight: 700; font-size: 1.4rem; text-decoration: none; }
.tc-logo img { display: block; width: 150px; height: auto; }
.tc-btn-quote { padding: 10px 16px; white-space: nowrap; }
.tc-nav-toggle { order: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--tc-white); cursor: pointer; }
.tc-burger, .tc-burger::before, .tc-burger::after { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s; }
.tc-burger { position: relative; }
.tc-burger::before, .tc-burger::after { content: ""; position: absolute; left: 0; }
.tc-burger::before { top: -7px; } .tc-burger::after { top: 7px; }
.is-open .tc-burger { background: transparent; }
.is-open .tc-burger::before { transform: translateY(7px) rotate(45deg); }
.is-open .tc-burger::after { transform: translateY(-7px) rotate(-45deg); }
.tc-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 72px); overflow-y: auto; background: var(--tc-navy); border-top: 1px solid rgba(255,255,255,.15); }
.is-open .tc-nav { display: block; }
.tc-menu, .tc-menu ul { margin: 0; padding: 0; list-style: none; }
.tc-menu a { display: block; padding: 10px var(--tc-gutter); color: var(--tc-white); text-decoration: none; }
.tc-menu a:hover, .tc-menu .current-menu-item > a { color: var(--tc-orange); }
.tc-menu > li > a { font-weight: 700; }
.tc-menu .sub-menu a { padding-left: calc(var(--tc-gutter) + 16px); font-size: .95rem; }

/* ---------- hero ---------- */
.tc-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--tc-navy); color: var(--tc-grey-200); }
.tc-hero-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 38% 52%; }
.tc-hero-inner { max-width: var(--tc-wrap); padding: 2rem 0; }
.tc-hero-text { padding: 30px; }
.tc-hero h1 { margin: 0 0 30px; color: var(--tc-grey-200); font-size: 60px; line-height: 72px; }
.tc-hero-summary { max-width: 60ch; font-size: 18px; line-height: 1.5; }
.tc-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 4.8px 12px; border: 1px solid var(--tc-navy); border-radius: 15px; background: var(--tc-green); color: #f7f9f8; font-size: 12px; font-weight: 700; line-height: 1.6; }
.tc-eyebrow .tc-icon { width: 13px; height: 13px; }
.tc-price { margin-bottom: 1.25em; font-size: 1.1rem; }
.tc-price strong { color: var(--tc-orange); font-size: 1.35em; }
.tc-pagehead { background: var(--tc-navy); color: var(--tc-white); padding-block: 32px; }
.tc-pagehead h1 { margin: 0; color: var(--tc-white); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
.tc-meta { margin: .5em 0 0; color: var(--tc-grey-200); }

/* ---------- breadcrumbs ---------- */
.tc-breadcrumbs ol { display: flex; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; font-size: .9rem; color: var(--tc-grey-200); }
.tc-breadcrumbs li + li::before { content: "›"; margin: 0 .5em; }
.tc-breadcrumbs a { color: var(--tc-white); }
/* Phones: no breadcrumb above the hero title (Ali). Google still gets the BreadcrumbList schema. */
@media (max-width: 767px) { .tc-hero .tc-breadcrumbs { display: none; } }

/* ---------- trust strip ---------- */
.tc-trust-band { padding-block: 40px; background: var(--tc-white); }
.tc-trust { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tc-trust li { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px; background: var(--tc-bg); box-shadow: inset 0 0 0 1px rgba(0,48,73,.06); color: var(--tc-grey-700); font-size: 1rem; line-height: 1.45; }
.tc-trust .tc-icon { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: rgba(45,155,111,.12); color: var(--tc-green); }
.tc-trust strong { display: block; margin-bottom: 4px; color: var(--tc-ink); font-size: 1.1rem; line-height: 1.3; }
/* phones: one swipeable row (next card peeks in) instead of 8 stacked cards; tablet/desktop keep the grid */
@media (max-width: 767px) {
	.tc-trust { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; padding-bottom: 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.tc-trust::-webkit-scrollbar { display: none; }
	.tc-trust li { scroll-snap-align: start; }
}

/* ---------- content ---------- */
.tc-main { display: block; flex: 1 0 auto; }
.tc-content { padding-block: 40px; }
.tc-content > :where(p, ul, ol, h2, h3, h4, blockquote) { max-width: 72ch; }
.tc-content h2 { margin-top: 1.4em; }
.tc-content > h2:first-child { margin-top: 0; }
.tc-content .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.tc-content .alignwide { width: 100%; }
/* Lists and tables keep the live Kadence look: check icons, green table lines, centred cells. */
.tc-content ul.wp-block-list { list-style: none; padding-left: 0; }
.tc-content ul.wp-block-list > li { position: relative; padding-left: 28px; margin-bottom: .4em; }
.tc-content ul.wp-block-list > li::before { content: ""; position: absolute; left: 0; top: .25em; width: 18px; height: 18px; background: var(--tc-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.8 10A10 10 0 1 1 17 3.3'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.8 10A10 10 0 1 1 17 3.3'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.tc-content .wp-block-table table { border-collapse: collapse; }
.tc-content .wp-block-table :where(th, td) { border: 2px solid var(--tc-green); padding: .6em 1em; text-align: center; }
.tc-content .wp-block-table thead { border-bottom: 0; }
.tc-section { padding-block: 40px; }
.tc-refund { display: grid; gap: 16px; margin-block: 40px; }
.tc-refund-card, .tc-claim-card { display: flex; gap: 18px; align-items: flex-start; padding: 28px; border-radius: 16px; }
.tc-refund-card { background: linear-gradient(135deg, #e8f5ef, #f4faf7); box-shadow: inset 0 0 0 1px rgba(45,155,111,.25); }
.tc-claim-card { background: var(--tc-white); box-shadow: inset 0 0 0 1px rgba(0,48,73,.08); }
.tc-refund .tc-icon { width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: var(--tc-green); color: var(--tc-white); }
.tc-claim-card .tc-icon { background: var(--tc-grey-200); color: var(--tc-navy); }
.tc-refund p { margin: 0; font-size: 1.05rem; }
.tc-refund strong { display: block; margin-bottom: 6px; color: var(--tc-ink); font-size: 1.2rem; }
.tc-faq-wrap { max-width: 900px; }
.tc-faq-item { margin-bottom: 12px; border-radius: 12px; background: var(--tc-white); box-shadow: inset 0 0 0 1px rgba(0,48,73,.08); }
.tc-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.tc-faq-item summary::-webkit-details-marker { display: none; }
.tc-faq-item summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px; border: solid var(--tc-navy); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.tc-faq-item[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.tc-faq-item h3 { margin: 0; font-size: 1.1rem; }
.tc-faq-answer { padding: 0 22px 18px; color: var(--tc-grey-700); }
.tc-faq-answer p:last-child { margin-bottom: 0; }
.tc-related-list { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0; list-style: none; }
.tc-related-list a { display: block; height: 100%; padding: 16px 20px; border: 1px solid var(--tc-grey-200); border-radius: var(--tc-radius); background: var(--tc-white); color: var(--tc-ink); font-weight: 700; text-decoration: none; }
.tc-related-list a:hover { border-color: var(--tc-green); color: var(--tc-green-dark); }
@media (min-width: 768px) { .tc-related-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tc-related-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- footer ---------- */
.tc-footer { background: var(--tc-navy); color: var(--tc-grey-200); font-size: .95rem; }
.tc-footer a { color: var(--tc-white); text-decoration: none; }
.tc-footer a:hover { color: var(--tc-orange); }
.tc-footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-block: 48px; }
.tc-footer-logo { display: block; width: 150px; margin-bottom: 16px; }
.tc-footer address { margin-bottom: 16px; font-style: normal; line-height: 1.7; }
.tc-footer-label { margin-bottom: 10px; color: var(--tc-white); font-weight: 700; }
.tc-footer ul { margin: 0; padding: 0; list-style: none; }
.tc-footer nav li { margin-bottom: 8px; }
.tc-social { display: flex; gap: 16px; }
.tc-social a { text-decoration: underline; }
.tc-footer-bottom { padding-block: 16px; background: var(--tc-navy-deep); font-size: .875rem; }

/* ---------- 768px+ ---------- */
@media (min-width: 768px) {
	:root { --tc-gutter: 24px; }
	body { font-size: 18px; }
	.tc-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
	.tc-section, .tc-content { padding-block: 56px; }
}

/* ---------- 1024px+ ---------- */
@media (min-width: 1024px) {
	.tc-nav-toggle { display: none; }
	.tc-logo img { width: 180px; }
	.tc-nav { display: block; position: static; max-height: none; overflow: visible; border: 0; background: none; }
	.tc-menu { display: flex; gap: 4px; }
	.tc-menu > li { position: relative; }
	.tc-menu > li > a { padding: 24px 12px; font-weight: 500; }
	.tc-menu > .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
	.tc-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 260px; padding: 8px 0; border-radius: 0 0 var(--tc-radius) var(--tc-radius); background: var(--tc-white); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
	.tc-menu .sub-menu:has(> li:nth-child(8)) { columns: 2; min-width: 480px; }
	.tc-menu > li:hover > .sub-menu, .tc-menu > li:focus-within > .sub-menu { display: block; }
	.tc-menu .sub-menu li { break-inside: avoid; }
	.tc-menu .sub-menu a { padding: 8px 20px; color: var(--tc-ink); }
	.tc-menu .sub-menu a:hover { color: var(--tc-green); }
}
@media (max-width: 782px) { .admin-bar .tc-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tc-header { top: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- home ---------- */
.tc-alt { background: var(--tc-white); }
.tc-note { color: var(--tc-grey-700); font-size: .95rem; }
.tc-section .tc-refund { margin-block: 0; }
.tc-section address { margin-bottom: 1em; font-style: normal; line-height: 1.7; }
/* section rhythm */
.tc-navy { background: var(--tc-navy); color: var(--tc-grey-200); }
.tc-navy h2 { color: var(--tc-white); }
.tc-navy .tc-intro { color: rgba(237,242,247,.8); }
.tc-link-arrow { display: inline-flex; flex: none; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.tc-link-arrow .tc-icon { width: 18px; height: 18px; }
/* coverage */
.tc-feature-grid, .tc-prices, .tc-tools, .tc-insurers, .tc-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tc-feature { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 16px; background: var(--tc-white); box-shadow: inset 0 0 0 1px rgba(0,48,73,.08); color: var(--tc-grey-700); }
.tc-feature .tc-icon { width: 52px; height: 52px; margin-bottom: 8px; padding: 12px; border-radius: 14px; background: var(--tc-green); color: var(--tc-white); }
.tc-feature strong { color: var(--tc-ink); font-size: 1.15rem; }
.tc-alt .tc-feature, .tc-alt .tc-price-card, .tc-alt .tc-tools a { background: var(--tc-bg); }
/* insurers */
.tc-split { display: grid; gap: 24px; }
.tc-insurers li { display: flex; gap: 20px; align-items: center; padding: 22px; border-radius: 16px; background: var(--tc-white); box-shadow: inset 0 0 0 1px rgba(0,48,73,.08); color: var(--tc-grey-700); }
.tc-insurers img { flex: none; width: 120px; height: 72px; object-fit: contain; }
.tc-insurers strong { display: block; margin-bottom: 4px; color: var(--tc-ink); font-size: 1.1rem; }
.tc-panel { padding: 24px; border-radius: 16px; background: var(--tc-white); box-shadow: inset 0 0 0 1px rgba(0,48,73,.08); }
.tc-panel-title { margin: 0 0 14px; color: var(--tc-ink); font-weight: 700; font-size: 1.15rem; }
.tc-panel table { border-radius: 10px; overflow: hidden; }
.tc-panel .tc-note { margin: 12px 0 0; }
.tc-prices + .tc-note { margin: 16px 0 0; }
/* prices */
.tc-price-card { display: flex; flex-direction: column; padding: 28px; border-radius: 16px; background: var(--tc-white); box-shadow: inset 0 0 0 1px rgba(0,48,73,.08); }
.tc-price-zone { color: var(--tc-ink); font-weight: 700; font-size: 1.25rem; }
.tc-price-eg { min-height: 3em; margin-top: 4px; color: var(--tc-grey-700); font-size: .95rem; }
.tc-price-from { margin-top: 20px; color: var(--tc-grey-700); font-size: .9rem; }
.tc-price-amount { margin-bottom: 22px; color: var(--tc-navy); font-weight: 700; font-size: 2.6rem; line-height: 1.1; letter-spacing: -.02em; }
.tc-btn-outline { align-self: flex-start; background: transparent; box-shadow: inset 0 0 0 2px var(--tc-green); color: var(--tc-green-dark); }
.tc-btn-outline:hover { background: var(--tc-green); color: var(--tc-white); }
/* steps */
.tc-steps { counter-reset: step; }
.tc-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 16px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: rgba(237,242,247,.85); }
.tc-steps li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; background: var(--tc-orange); color: var(--tc-navy); font-weight: 700; font-size: 1.3rem; }
.tc-steps strong { color: var(--tc-white); font-size: 1.2rem; }
/* tools */
.tc-tools a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 24px 24px; border-radius: 16px; background: var(--tc-white); box-shadow: inset 0 0 0 1px rgba(0,48,73,.08); color: var(--tc-grey-700); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tc-tools a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--tc-green), 0 16px 32px -12px rgba(0,48,73,.25); color: var(--tc-grey-700); }
.tc-tools .tc-icon { width: 44px; height: 44px; margin-bottom: 8px; padding: 10px; border-radius: 12px; background: rgba(45,155,111,.12); color: var(--tc-green); }
.tc-tools strong { padding-right: 28px; color: var(--tc-ink); font-size: 1.1rem; }
.tc-tool-go { position: absolute; top: 24px; right: 22px; color: var(--tc-green); }
.tc-tool-go .tc-icon { width: 22px; height: 22px; margin: 0; padding: 0; background: none; }
/* latest guides */
.tc-posts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tc-posts a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 16px; background: var(--tc-white); box-shadow: inset 0 0 0 1px rgba(0,48,73,.08); color: var(--tc-grey-700); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tc-posts a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--tc-green), 0 16px 32px -12px rgba(0,48,73,.25); color: var(--tc-grey-700); }
.tc-posts img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tc-post-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.tc-post-body time { color: var(--tc-grey-700); font-size: .85rem; }
.tc-post-body strong { color: var(--tc-ink); font-size: 1.15rem; line-height: 1.3; }
@media (min-width: 768px) { .tc-posts { grid-template-columns: repeat(3, 1fr); } }
/* closing CTA */
.tc-cta { padding: 56px 24px; border-radius: 24px; background: var(--tc-navy); color: var(--tc-grey-200); text-align: center; }
.tc-cta h2 { color: var(--tc-white); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.tc-cta p { max-width: 60ch; margin: 0 auto 28px; font-size: 1.1rem; }
.tc-cta .tc-btn { padding: 16px 34px; font-size: 1.1rem; }
@media (min-width: 768px) {
	.tc-trust, .tc-tools { grid-template-columns: repeat(2, 1fr); }
	.tc-feature-grid, .tc-prices, .tc-steps { grid-template-columns: repeat(3, 1fr); }
	.tc-refund { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 1024px) {
	.tc-trust { grid-template-columns: repeat(4, 1fr); }
	.tc-tools { grid-template-columns: repeat(5, 1fr); }
	.tc-split { grid-template-columns: 5fr 7fr; align-items: start; }
	.tc-trust-band, .tc-section { padding-block: 72px; }
}
/* ---------- hero with quote form ---------- */
.tc-hero-text { min-width: 0; }
.tc-hero.has-form .tc-hero-btn { display: none; }
/* tc-funnel reserves one height for the form inside a photo hero (it only knows Kadence and cover
   classes), so the hero never resizes and the photo never re-crops between steps. */
.tc-hero.has-image .tcf-wz-stage { --tcf-wz-stage: 680px; min-height: var(--tcf-wz-stage); }
/* The white card fills that reserve, so it is one height on every step too (steps run 362–630px). */
.tc-hero.has-image .tcf-wz-stage > .tcf-wizard { min-height: var(--tcf-wz-stage); }
.tc-quote-card { min-width: 0; color: var(--tc-ink); max-width: 560px; margin: 0 30px 30px; }
/* Phones and tablets: hero text and quote form on the same 16/24px page edge as every other
   section (the 30px inset was copied from the Kadence desktop hero and squeezed the form). */
@media (max-width: 1023px) {
	.tc-hero-text { padding-inline: var(--tc-gutter); }
	.tc-quote-card { max-width: none; margin-inline: var(--tc-gutter); }
}
@media (min-width: 1024px) {
	.tc-hero-inner { padding-block: 6rem 9rem; }
	.tc-hero.has-form .tc-hero-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; }
	/* Same edges as the header: the H1 sits under the logo and the form ends under the Get Quote button. */
	.tc-hero.has-form .tc-hero-inner { max-width: calc(var(--tc-wrap) + 2 * var(--tc-gutter)); padding-inline: var(--tc-gutter); }
	.tc-hero.has-form .tc-quote-card { width: 100%; margin: 0 0 0 auto; }
}

.tc-not-covered { margin: 24px 0 0; color: var(--tc-grey-700); }

/* ---------- carousel ---------- */
.tc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.tc-section-head h2 { margin: 0; }
/* phones: the aside link ("All tools →") goes under the heading instead of past the screen edge */
@media (max-width: 767px) { .tc-section-head { flex-direction: column; align-items: flex-start; } }
.tc-intro { margin: .4em 0 0; max-width: 60ch; color: var(--tc-grey-700); }
/* tall photo cards, text on the image (as on live) */
.tc-card a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: var(--tc-navy); color: var(--tc-white); text-decoration: none; isolation: isolate; box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.tc-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tc-card a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.82) 100%); }
.tc-card a:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -12px rgba(0,0,0,.35); color: var(--tc-white); }
.tc-card a:hover img { transform: scale(1.06); }
.tc-card-body { display: block; padding: 20px 18px 22px; }
.tc-card-title { display: block; margin-bottom: 6px; font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.tc-card-desc { display: block; color: rgba(255,255,255,.88); font-size: .95rem; line-height: 1.45; }
.tc-carousel-nav { display: flex; flex: none; gap: 8px; }
.tc-carousel { position: relative; }
.tc-carousel-nav[hidden] { display: none; }
.tc-carousel-btn { position: absolute; top: calc(50% - 6px); z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0 0 3px; border: 0; border-radius: 50%; background: var(--tc-white); color: var(--tc-navy); box-shadow: 0 8px 18px rgba(0,48,73,.18); font-size: 1.6rem; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.tc-carousel-btn.tc-prev { left: -21px; }
.tc-carousel-btn.tc-next { right: -21px; }
.tc-carousel-btn:hover:not(:disabled) { color: var(--tc-green); }
.tc-carousel-btn:disabled { opacity: .45; cursor: default; }
.tc-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px; margin: 0; padding: 4px 2px 16px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tc-cards::-webkit-scrollbar { display: none; }
.tc-card { scroll-snap-align: start; }
@media (max-width: 599px) { .tc-cards-section .tc-carousel-nav { display: none; } }
/* 600–767px: the gutter is 16px, so arrows half outside the row (-21px) went past the screen edge */
@media (min-width: 600px) and (max-width: 767px) { .tc-carousel-btn.tc-prev { left: -12px; } .tc-carousel-btn.tc-next { right: -12px; } }
@media (min-width: 600px) { .tc-cards { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 900px) { .tc-cards { grid-auto-columns: calc((100% - 32px) / 3); } }
.tc-footer-about { max-width: 46ch; margin-bottom: 16px; }

/* third menu level: listed under its parent, never a flyout */
.tc-menu .sub-menu .sub-menu a { padding-left: calc(var(--tc-gutter) + 32px); font-size: .9rem; }
@media (min-width: 1024px) {
	.tc-menu > li:last-child > .sub-menu { left: auto; right: 0; }
	.tc-menu .sub-menu .sub-menu { display: block; position: static; min-width: 0; padding: 0; columns: auto; box-shadow: none; }
	.tc-menu .sub-menu .sub-menu a { padding: 4px 20px 4px 36px; color: var(--tc-grey-700); }
}
