/*
Theme Name: Infinity Trailers
Template: twentytwentyfive
Description: Child theme for infinitytrailers.com, matching the Infinity Trailers brand (Readex Pro, navy and red).
Version: 0.6.2
Requires at least: 6.7
Text Domain: infinitytrailers
*/

/* ---------- Header ---------- */
.it-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: 0 0 5px 1px #dbdbdb;
}
.admin-bar .it-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .it-header { top: 46px; } }

.it-header .it-logo img { width: 190px; height: auto; display: block; }

.it-header .wp-block-navigation {
	font-size: 15px;
	font-weight: 400;
}
.it-header .wp-block-navigation a { color: var(--wp--preset--color--navy); text-decoration: none; }
.it-header .wp-block-navigation a:hover,
.it-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--red); }
.it-header .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: 0 6px 18px rgba(10, 23, 31, .12); padding: 8px 0; }
.it-header .wp-block-navigation__submenu-container a { padding: 6px 18px !important; }

/* ---------- Buttons ---------- */
.wp-block-button__link,
.wp-element-button {
	text-transform: uppercase;
	letter-spacing: .02em;
	border: 1px solid var(--wp--preset--color--red);
}
.wp-block-button__link:hover,
.wp-element-button:hover {
	background: #b80e13 !important;
	border-color: #b80e13;
	color: #fff !important;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--red);
}

/* ---------- Footer ---------- */
.it-footer { color: var(--wp--preset--color--gray); }
.it-footer a { color: var(--wp--preset--color--gray); text-decoration: none; }
.it-footer a:hover { color: #fff; }
.it-footer .it-footer-logo img { width: 210px; height: auto; }
.it-footer .it-contact p { margin: 0 0 14px; }
.it-footer .it-contact .it-icon { color: #fff; margin-right: 8px; }
.it-footer .it-map iframe { border-radius: 10px; display: block; }
.it-footer .it-bottom { border-top: 1px solid rgba(143, 150, 161, .35); }
.it-footer .it-footer-links { gap: 28px; }
.it-footer .wp-block-social-links .wp-social-link { background: transparent !important; border: 1px solid #fff; border-radius: 4px; }

/* ---------- Homepage ---------- */
.it-hero .it-kicker { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.it-hero .wp-block-cover__inner-container { max-width: 1170px; width: 100% !important; margin: 0 auto !important; }
.it-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: auto !important; max-width: 760px; }
.it-hero h1 { margin-top: 0; }
.it-btn-light > .wp-block-button__link { color: #fff !important; border-color: #fff !important; }
.it-btn-light > .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--navy) !important; }

.it-card { background: #fff; border-radius: 10px; box-shadow: 0 4px 18px rgba(10, 23, 31, .08); overflow: hidden; display: flex; flex-direction: column; }
.it-card > * { margin-left: 20px; margin-right: 20px; }
.it-card .it-card-img { margin: 0 0 16px; }
.it-card .it-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.it-card .it-card-title { font-size: 20px; margin-top: 0; margin-bottom: 10px; }
.it-card .it-card-title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.it-card .it-card-title a:hover { color: var(--wp--preset--color--red); }
.it-card p { font-size: 15px; margin-top: 0; }
.it-card .it-stock { color: var(--wp--preset--color--red); font-weight: 500; }
.it-card .it-card-link { margin-top: auto; padding-bottom: 20px; }
.it-card .it-card-link a { font-weight: 500; text-decoration: none; }

.it-kicker-red { color: var(--wp--preset--color--red); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.it-about-imgs { position: relative; padding-right: 22%; padding-bottom: 12%; }
.it-about-imgs img { display: block; border-radius: 10px; }
.it-about-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.it-about-sm { position: absolute; right: 0; width: 42%; border: 6px solid #fff; box-shadow: 0 6px 18px rgba(10, 23, 31, .15); }
.it-about-sm1 { top: 18%; }
.it-about-sm2 { bottom: 0; }
.it-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: #565656; color: #fff; border-radius: 10px; padding: 22px; margin-top: 32px; }
.it-stat { display: flex; flex-direction: column; gap: 4px; }
.it-stat strong { font-size: 22px; font-weight: 700; }
.it-stat span { font-size: 15px; }

.it-partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 40px; }
.it-partners a { flex: 0 0 150px; }
.it-partners img { width: 100%; height: 70px; object-fit: contain; display: block; }

@media (max-width: 781px) {
	.it-about-imgs { padding-right: 0; padding-bottom: 0; }
	.it-about-sm { display: none; }
}

/* ---------- Trailer pages ---------- */
.it-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.it-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--wp--preset--color--gray); }
.it-breadcrumbs a { color: var(--wp--preset--color--gray); text-decoration: none; }
.it-breadcrumbs a:hover { color: var(--wp--preset--color--red); }

.it-gallery-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.it-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.it-gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; overflow: hidden; }
.it-gallery-thumbs button.is-active { border-color: var(--wp--preset--color--red); }
.it-gallery-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.it-order-box { border: 1px solid #e3e5e8; border-radius: 10px; padding: 20px; margin-top: 20px; background: #fff; }
.it-price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.it-price-row strong { font-size: 24px; font-weight: 700; }
.it-options { border: 0; border-top: 1px solid #e3e5e8; border-bottom: 1px solid #e3e5e8; margin: 16px 0; padding: 12px 0; }
.it-options legend { font-weight: 500; padding: 0 0 6px; }
.it-options label { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 6px 0; cursor: pointer; font-size: 15px; }
.it-options input { width: 18px; height: 18px; accent-color: var(--wp--preset--color--red); }
.it-options em { font-style: normal; font-weight: 500; }
.it-total strong { color: var(--wp--preset--color--red); }
.it-order-btns { margin-top: 18px; }

.it-specs ul { columns: 2; column-gap: 40px; padding-left: 18px; }
.it-specs li { break-inside: avoid; margin-bottom: 6px; font-size: 15px; }
.it-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.it-stock-note { color: var(--wp--preset--color--red); font-weight: 500; }
@media (max-width: 600px) { .it-specs ul { columns: 1; } }

/* ---------- Phones ---------- */
.wp-block-button__link { white-space: nowrap; }
@media (max-width: 600px) {
	.it-header { padding-left: 16px !important; padding-right: 16px !important; }
	.it-header .it-logo img { width: 140px; }
	.it-header .wp-block-button__link { font-size: 13px; padding: 8px 12px !important; }
	.it-header .wp-block-group { gap: 14px; }
	.it-footer .it-footer-links { gap: 14px 20px !important; }
}

/* ---------- Helpers ---------- */
.it-red { color: var(--wp--preset--color--red); }

/* ---------- Inner pages (About, FAQ, Contact, Finance) ---------- */
.it-banner { min-height: 420px !important; }
@media (max-width: 781px) { .it-banner { min-height: 200px !important; } }
.it-btn { display: inline-block; background: var(--wp--preset--color--red); color: #fff; border: 0; border-radius: 5px; padding: 13px 30px; font: inherit; font-size: 15px; font-weight: 500; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.it-btn:hover { background: #b80e13; color: #fff; }
.it-band { padding: 60px 0; }

/* About */
.it-about-page img { width: 100%; height: auto; border-radius: 6px; display: block; }
.it-signoff { font-weight: 500; color: var(--wp--preset--color--red); }

/* FAQ accordion */
.it-faq .wp-block-details { border: 1px solid #e3e6ea; border-radius: 6px; margin: 0 0 12px; padding: 0; background: #fff; }
.it-faq .wp-block-details summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 500; font-size: 17px; position: relative; list-style: none; }
.it-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.it-faq .wp-block-details summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--wp--preset--color--red); }
.it-faq .wp-block-details[open] summary { color: var(--wp--preset--color--red); }
.it-faq .wp-block-details[open] summary::after { content: '\2212'; }
.it-faq .wp-block-details > *:not(summary) { margin: 0 20px 14px; }
.it-faq .wp-block-details > *:last-child { margin-bottom: 18px; }

/* Contact */
.it-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px dashed var(--wp--preset--color--red); }
.it-contact-grid > div { padding: 30px 20px; text-align: center; border: 1px dashed var(--wp--preset--color--red); margin: -1px 0 0 -1px; }
.it-contact-grid > div:nth-child(even) { background: var(--wp--preset--color--light); }
.it-contact-grid h3 { font-size: 20px; margin: 8px 0 6px; }
.it-contact-grid p { margin: 0; }
.it-contact-grid a { color: inherit; text-decoration: none; font-weight: 500; }
.it-contact-grid .it-ico { color: var(--wp--preset--color--red); font-size: 22px; line-height: 1; }
.it-contact-grid .it-hours { color: var(--wp--preset--color--red); font-weight: 500; }
.it-contact-grid .it-social { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.it-contact-grid .it-social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 4px; color: #fff; font-weight: 600; }
@media (max-width: 781px) { .it-contact-grid { grid-template-columns: 1fr; } }
.it-form-box { background: #fff; border-radius: 8px; box-shadow: 0 2px 14px rgba(10, 23, 31, .1); padding: 32px; }
.it-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.it-form .it-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.it-form .it-field b { color: var(--wp--preset--color--red); }
.it-form .it-field-full, .it-form > p { grid-column: 1 / -1; margin: 0; }
.it-form input, .it-form textarea { font: inherit; font-size: 15px; font-weight: 400; padding: 11px 12px; border: 1px solid #cfd4da; border-radius: 5px; width: 100%; box-sizing: border-box; }
.it-form input:focus, .it-form textarea:focus { outline: 2px solid var(--wp--preset--color--red); outline-offset: 0; border-color: transparent; }
.it-hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { .it-form { grid-template-columns: 1fr; } .it-form-box { padding: 22px; } }
.it-form-note { padding: 12px 16px; border-radius: 5px; }
.it-ok { background: #e8f5ec; color: #17602f; }
.it-err { background: #fdecec; color: #9b0d12; }
.it-map-box iframe { width: 100%; height: 420px; border: 0; border-radius: 8px; display: block; }

/* Finance */
.it-fin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .it-fin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .it-fin-grid { grid-template-columns: 1fr; } }
.it-fin-card { border: 1px solid var(--wp--preset--color--red); border-radius: 4px; background: radial-gradient(circle at 30% 30%, #fff 0, #ececec 100%); padding: 26px 20px; text-align: center; }
.it-fin-logo img { height: 64px; width: auto; max-width: 220px; object-fit: contain; display: inline-block; }
.it-fin-card h3 { font-size: 19px; margin: 12px 0 6px; }
.it-fin-card h3 a { color: var(--wp--preset--color--red); text-decoration: none; }
.it-fin-card p { margin: 2px 0; }
.it-fin-person { color: var(--wp--preset--color--red); font-weight: 500; }
.it-fin-phone a { color: var(--wp--preset--color--navy); text-decoration: none; }
.it-fin-apply { margin-top: 10px !important; font-size: 14px; }
.it-fin-apply a { font-weight: 500; text-decoration: none; }

/* ---------- Checkout ---------- */
.it-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; margin: 10px 0 70px; }
@media (max-width: 900px) { .it-checkout { grid-template-columns: 1fr; } .it-co-summary { order: -1; position: static !important; } }
.it-step { border: 1px solid #e3e6ea; border-radius: 8px; padding: 22px 24px 24px; margin: 0 0 22px; background: #fff; }
.it-step legend { font-size: 20px; font-weight: 600; padding: 0 8px; display: flex; align-items: center; gap: 10px; }
.it-step legend span { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--wp--preset--color--red); color: #fff; font-size: 15px; align-items: center; justify-content: center; }
.it-checkout .it-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; margin: 0 0 16px; }
.it-checkout .it-field > span b, .it-check b { color: var(--wp--preset--color--red); }
.it-checkout .it-field small { font-weight: 400; color: #6b7280; }
.it-checkout input[type=text], .it-checkout input[type=email], .it-checkout input[type=tel], .it-checkout select, .it-checkout textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 11px 12px; border: 1px solid #cfd4da; border-radius: 5px; width: 100%; box-sizing: border-box; background: #fff; }
.it-checkout input:focus, .it-checkout select:focus, .it-checkout textarea:focus { outline: 2px solid var(--wp--preset--color--red); border-color: transparent; }
.it-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.it-grid2 .it-field-full { grid-column: 1 / -1; }
.it-grid2.it-tight { gap: 0 12px; }
@media (max-width: 600px) { .it-grid2 { grid-template-columns: 1fr; } .it-grid2.it-tight { grid-template-columns: 1fr 1fr; } .it-step { padding: 18px 16px; } }
.it-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.it-color { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cfd4da; border-radius: 6px; padding: 9px 14px; cursor: pointer; font-weight: 500; }
.it-color input { position: absolute; opacity: 0; }
.it-color:has(input:checked) { border-color: var(--wp--preset--color--red); box-shadow: 0 0 0 1px var(--wp--preset--color--red); }
.it-color:has(input:focus-visible) { outline: 2px solid var(--wp--preset--color--navy); }
.it-color small { color: #6b7280; font-weight: 400; }
.it-sw { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.2); }
.it-sw-black { background: #111; } .it-sw-blue { background: #1f5fbf; } .it-sw-red { background: #c8102e; } .it-sw-grey { background: #8a8f96; }
.it-check { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 8px 0; cursor: pointer; font-size: 15px; }
.it-check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--wp--preset--color--red); }
.it-check em { font-style: normal; font-weight: 500; white-space: nowrap; }
.it-co-options .it-check { border-bottom: 1px solid #eef0f2; }
.it-muted { color: #6b7280; font-size: 14px; }
.it-small { font-size: 13px; }
.it-attn { background: var(--wp--preset--color--light); border-left: 4px solid var(--wp--preset--color--red); padding: 12px 14px; font-size: 14px; }
.it-warranty { border: 1px solid #e3e6ea; border-radius: 6px; padding: 0 16px; margin: 0 0 14px; font-size: 14px; }
.it-warranty summary { cursor: pointer; padding: 12px 0; font-weight: 500; color: var(--wp--preset--color--red); }
.it-invalid input, .it-invalid select, .it-invalid textarea { border-color: var(--wp--preset--color--red) !important; background: #fff6f6 !important; }
.it-check.it-invalid span, .it-field.it-invalid > span { color: var(--wp--preset--color--red); }
.it-btn-lg { font-size: 17px; padding: 15px 38px; }
.it-btn:disabled { opacity: .6; cursor: wait; }
.it-co-summary { position: sticky; top: 110px; border: 1px solid #e3e6ea; border-radius: 8px; padding: 22px; background: var(--wp--preset--color--light); }
.it-co-summary h2 { font-size: 22px; margin: 0 0 12px; }
.it-sum-row, .it-sum-total, .it-sum-dep { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e3e6ea; font-size: 14px; }
.it-sum-row strong { font-weight: 500; white-space: nowrap; }
.it-sum-model span { font-weight: 600; }
.it-sum-total { font-size: 18px; border-bottom: 0; padding-top: 14px; }
.it-sum-total strong { color: var(--wp--preset--color--red); }
.it-sum-dep { font-size: 15px; }
.it-thanks { max-width: 760px; margin: 10px auto 70px; border: 1px solid #e3e6ea; border-radius: 8px; padding: 30px; background: #fff; }

/* ---------- Blog ---------- */
.it-lead { color: #555; max-width: 720px; margin-left: auto !important; margin-right: auto !important; }
.it-blog-grid { gap: 28px !important; margin-top: 36px; }
@media (max-width: 900px) { .it-blog-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .it-blog-grid { grid-template-columns: 1fr !important; } }
.it-blog-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(10, 23, 31, .08); height: 100%; display: flex; flex-direction: column; }
.it-blog-card .wp-block-post-featured-image { margin: 0; }
.it-blog-card .wp-block-post-featured-image img { width: 100%; object-fit: cover; display: block; }
.it-blog-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.it-blog-date { font-size: 13px; color: var(--wp--preset--color--red); font-weight: 500; margin: 0 0 6px; }
.it-blog-title { font-size: 19px !important; line-height: 1.3; margin: 0 0 10px; }
.it-blog-title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.it-blog-title a:hover { color: var(--wp--preset--color--red); }
.it-blog-excerpt { font-size: 15px; color: #444; margin: 0; }
.it-blog-excerpt .wp-block-post-excerpt__more-link { display: inline-block; margin-top: 10px; font-weight: 500; color: var(--wp--preset--color--red); text-decoration: none; }
.it-pagination { margin-top: 40px; gap: 6px; font-weight: 500; }
.it-pagination a, .it-pagination .current { padding: 6px 12px; border-radius: 4px; text-decoration: none; }
.it-pagination .current { background: var(--wp--preset--color--red); color: #fff; }
.it-single-title { font-size: clamp(28px, 4vw, 40px) !important; line-height: 1.2; margin-top: 10px; }
.it-single-meta { gap: 6px 14px; color: #6b7280; font-size: 14px; margin-bottom: 18px; }
.it-single-meta > * { margin: 0; }
.it-single-meta .wp-block-post-date { color: var(--wp--preset--color--red); font-weight: 500; }
.it-single-image img { border-radius: 8px; }
.it-single-content { font-size: 17px; line-height: 1.7; }
.it-single-content h2 { font-size: 26px; margin-top: 1.6em; }
.it-single-content h3 { font-size: 21px; margin-top: 1.4em; }
.it-single-content img { max-width: 100%; height: auto; border-radius: 6px; }
.it-single-content table { border-collapse: collapse; width: 100%; font-size: 15px; }
.it-single-content th, .it-single-content td { border: 1px solid #e3e6ea; padding: 8px 10px; text-align: left; }
.it-single-cta { background: var(--wp--preset--color--light); border-left: 4px solid var(--wp--preset--color--red); border-radius: 6px; padding: 24px 28px; margin: 40px 0 10px; }
.it-single-cta h2 { margin-top: 0; font-size: 24px; }
