/*
Theme Name: Tomsriver Child
Theme URI: https://tomsriver.local
Description: Child theme of Kadence for Toms River Car Service. Conversion-tuned, mirrors tomsrivercarservice.com live layout.
Author: Lions Share Marketing
Template: kadence
Version: 0.3.0
Text Domain: tomsriver-child
*/

/* ===========================================================
   1. Top utility bar
   =========================================================== */
.site-top-header-wrap .tr-top-phone {
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.02em;
}
.site-top-header-wrap .tr-top-phone:hover { color: #cfcfcf; }
.site-top-header-wrap .site-header-row-container-inner {
	padding-top: 4px;
	padding-bottom: 4px;
}
@media (max-width: 767px) {
	.site-top-header-wrap .tr-top-phone { font-size: 16px; }
}

/* ===========================================================
   2. Header — logo + two-button CTA group
   =========================================================== */
.site-main-header-wrap .site-branding .brand img.custom-logo {
	max-height: 80px;
	width: auto;
}
.site-main-header-wrap .site-header-main-section-right .header-button-wrap {
	margin-left: 1rem;
}

/* Two-button group — prefix with #main-header to beat Kadence's inline CSS specificity */
#main-header .tr-header-buttons .header-button-inner-wrap {
	display: inline-flex;
	gap: 10px;
	align-items: center;
}
#main-header .tr-header-buttons .header-button {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 11px 22px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
	box-shadow: none;
}
#main-header .tr-header-buttons .tr-quote-button {
	background: transparent;
	color: #111;
	border: 1.5px solid #111;
}
#main-header .tr-header-buttons .tr-quote-button:hover {
	background: #111;
	color: #fff;
}
#main-header .tr-header-buttons .tr-book-button {
	background: #000;
	color: #fff;
	border: 1.5px solid #000;
}
#main-header .tr-header-buttons .tr-book-button:hover {
	background: #222;
	border-color: #222;
	color: #fff;
}
@media (max-width: 1024px) {
	.tr-header-buttons .tr-quote-button { display: none; } /* keep header tight on tablet */
}

/* ===========================================================
   2b. Strip Kadence's content-area margins on the home page so
       the hero sits flush against the header.
   =========================================================== */
.home .content-area,
.page-id-13692 .content-area,
.page-id-13765 .content-area,
.page-id-13926 .content-area {
	margin-top: 0;
	margin-bottom: 0;
}
.home .entry-content-wrap,
.page-id-13692 .entry-content-wrap,
.page-id-13765 .entry-content-wrap,
.page-id-13926 .entry-content-wrap {
	padding: 0;
}
.home .entry.single-entry,
.page-id-13692 .entry.single-entry,
.page-id-13765 .entry.single-entry,
.page-id-13926 .entry.single-entry {
	box-shadow: none;
}

/* ===========================================================
   3. Hero (homepage)
   =========================================================== */
.tr-hero {
	position: relative;
}
/* Force the cover inner-container to fully center its kids */
.tr-hero > .wp-block-cover__inner-container {
	width: 100%;
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.tr-hero .tr-hero-phone {
	background: rgba(0,0,0,0.45);
	display: inline-block;
	padding: 6px 22px;
	border-radius: 6px;
	color: #fff !important;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 500;
	margin: 0 auto 16px;
	width: max-content;
}
.tr-hero .tr-hero-phone a { color: inherit; text-decoration: none; }
.tr-hero h1.tr-hero-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(36px, 5.2vw, 64px);
	font-weight: 500;
	margin: 0.2em 0 0.3em;
	letter-spacing: -0.01em;
	line-height: 1.1;
	text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.tr-hero .tr-hero-tagline {
	font-size: clamp(15px, 1.4vw, 20px);
	letter-spacing: 0.06em;
	opacity: 0.95;
	margin: 0 0 0.75rem;
	text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.tr-hero .tr-hero-proof {
	font-size: clamp(12px, 1.05vw, 14px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.85;
	margin: 0 0 1.5rem;
	text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* Pill CTAs in hero */
.tr-hero .wp-block-buttons {
	justify-content: center;
}
.tr-hero .wp-block-button .wp-block-button__link {
	border-radius: 999px;
	padding: 16px 36px;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 0.02em;
	text-transform: none;
	box-shadow: 0 8px 22px rgba(0,0,0,0.22);
	transition: transform .15s ease, box-shadow .15s ease;
}
.tr-hero .wp-block-button .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}
.tr-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: #000;
	color: #fff;
	border: 0;
}
.tr-hero .wp-block-button.is-style-outline .wp-block-button__link {
	background: #fff;
	color: #000;
	border: 0;
}

/* ===========================================================
   4. 3-column services grid
   =========================================================== */
.tr-services {
	padding: clamp(3rem, 6vw, 5rem) 1.5rem;
	background: #fafafa;
}
.tr-services > .wp-block-columns,
.tr-services .wp-block-columns {
	max-width: 1200px;
	margin-left: auto !important;
	margin-right: auto !important;
	gap: 2.5rem;
	justify-content: center;
}
/* Defang Kadence's negative-margin alignwide rule inside this section */
.tr-services .alignwide {
	margin-left: auto !important;
	margin-right: auto !important;
}
.tr-services .wp-block-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.tr-services .wp-block-column .wp-block-image {
	margin: 0 0 1.25rem;
}
.tr-services .wp-block-column .wp-block-image img {
	max-width: 110px;
	height: auto;
}
.tr-services .wp-block-column h2 {
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 600;
	margin: 0 0 1rem;
	letter-spacing: -0.005em;
}
.tr-services .wp-block-column p {
	font-size: 16px;
	line-height: 1.7;
	color: #2a2a2a;
	margin: 0 0 1rem;
}
.tr-services .wp-block-details {
	margin-top: 0.5rem;
	text-align: center;
}
.tr-services .wp-block-details summary {
	cursor: pointer;
	color: #444;
	font-size: 14px;
}

/* ===========================================================
   5. Callout strip (video + CTAs side-by-side)
   =========================================================== */
.tr-callout {
	background: #f3f3f3;
	color: #111;
	padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}
.tr-callout > .wp-block-columns {
	max-width: 1200px;
	margin: 0 auto !important;
	gap: 3rem;
	align-items: center;
}
.tr-callout .tr-callout-video {
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 14px 40px rgba(0,0,0,0.18);
	background: #000;
}
.tr-callout .tr-callout-video video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16/9;
	object-fit: cover;
}
.tr-callout .tr-callout-info {
	padding: 0.5rem 1rem;
}
.tr-callout .tr-callout-info h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 500;
	margin: 0 0 1.25rem;
	letter-spacing: -0.005em;
}
.tr-callout .tr-callout-services {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	text-align: center;
	line-height: 1.9;
	color: #444;
	font-size: 15px;
}
.tr-callout .tr-callout-services li { margin: 0; }
.tr-callout .tr-callout-call {
	font-size: 18px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 600;
	margin: 0.5rem 0 0.25rem;
}
.tr-callout .tr-callout-phone {
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	margin: 0 0 1.25rem;
	font-family: Georgia, "Times New Roman", serif;
}
.tr-callout .tr-callout-phone a {
	color: #000;
	text-decoration: none;
}
.tr-callout .tr-callout-phone a:hover {
	color: #333;
}
.tr-callout .wp-block-buttons {
	justify-content: center;
}
.tr-callout .wp-block-button .wp-block-button__link {
	border-radius: 999px;
	padding: 12px 28px;
	font-weight: 600;
	font-size: 15px;
	border: 0;
}
.tr-callout .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: #000;
	color: #fff;
}
.tr-callout .wp-block-button.is-style-outline .wp-block-button__link {
	background: #fff;
	color: #000;
	border: 1.5px solid #000;
}

@media (max-width: 782px) {
	.tr-callout > .wp-block-columns {
		gap: 2rem;
	}
	.tr-callout .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ===========================================================
   5b. Homepage blog roll (3 latest posts)
   =========================================================== */
.tr-news {
	padding: clamp(3rem, 6vw, 5rem) 1.5rem;
	background: #fff;
}
.tr-news h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 500;
	margin: 0 0 0.5rem;
	letter-spacing: -0.005em;
	text-align: center;
}
.tr-news .tr-news-sub {
	color: #666;
	font-size: 15px;
	margin: 0 0 2rem;
}
.tr-news .wp-block-query {
	max-width: 1200px;
	margin: 0 auto !important;
}
.tr-news .wp-block-post-template {
	gap: 2rem !important;
}
.tr-news .tr-news-card {
	background: #fafafa;
	border-radius: 8px;
	overflow: hidden;
	padding: 0 0 1.25rem !important;
	transition: transform .15s ease, box-shadow .15s ease;
}
.tr-news .tr-news-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.tr-news .tr-news-card .wp-block-post-featured-image {
	margin: 0 0 1rem;
}
.tr-news .tr-news-card .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}
.tr-news .tr-news-card h3.wp-block-post-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 1rem 0.5rem;
	line-height: 1.35;
}
.tr-news .tr-news-card h3.wp-block-post-title a {
	color: #111;
	text-decoration: none;
}
.tr-news .tr-news-card h3.wp-block-post-title a:hover {
	color: #1769ff;
}
.tr-news .tr-news-card .wp-block-post-date {
	margin: 0 1rem 0.5rem;
	color: #888;
}
.tr-news .tr-news-card .wp-block-post-excerpt {
	margin: 0 1rem;
	font-size: 14px;
	line-height: 1.6;
	color: #2a2a2a;
}
.tr-news .tr-news-card .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 0.5rem;
	font-weight: 600;
	color: #1769ff;
	text-decoration: none;
}
.tr-news .wp-block-buttons .wp-block-button .wp-block-button__link {
	border-radius: 999px;
	padding: 12px 28px;
	font-weight: 600;
	font-size: 15px;
	background: #fff;
	color: #000;
	border: 1.5px solid #000;
}
.tr-news .wp-block-buttons .wp-block-button .wp-block-button__link:hover {
	background: #000;
	color: #fff;
}

/* ===========================================================
   6. Testimonials carousel
   =========================================================== */
.tr-testimonials {
	padding: clamp(3rem, 6vw, 5rem) 1.5rem;
	background: #fff;
}
.tr-testimonials h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 500;
	margin: 0 0 2rem;
	letter-spacing: -0.005em;
}
.tr-carousel {
	position: relative;
	min-height: 200px;
	max-width: 760px;
	margin: 0 auto;
}
.tr-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility .6s ease;
	padding: 0 1rem;
}
.tr-slide.is-active {
	opacity: 1;
	visibility: visible;
}
.tr-slide blockquote {
	margin: 0;
	padding: 0 0 0 1rem;
	border-left: 3px solid #000;
	font-style: italic;
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.7;
	color: #2a2a2a;
	text-align: left;
}
.tr-dots {
	position: absolute;
	left: 0; right: 0;
	bottom: -2.5rem;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.tr-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	background: #ccc;
	cursor: pointer;
	padding: 0;
	transition: background .2s ease, transform .2s ease;
}
.tr-dot:hover { background: #888; }
.tr-dot.is-active {
	background: #000;
	transform: scale(1.2);
}
.tr-dot:focus-visible {
	outline: 2px solid #1769ff;
	outline-offset: 2px;
}

/* ===========================================================
   6b. Mobile breathing room — content sections were hugging the
       viewport edges because we zero'd entry-content-wrap padding
       to let the hero be full-bleed. Add explicit insets here.
   =========================================================== */
@media (max-width: 782px) {
	.tr-services,
	.tr-callout,
	.tr-news,
	.tr-testimonials,
	.tr-times,
	.tr-area,
	.tr-faq {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
	.tr-services .wp-block-column,
	.tr-callout .wp-block-column,
	.tr-news .tr-news-card {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}
	.tr-services .wp-block-columns,
	.tr-callout .wp-block-columns,
	.tr-news .wp-block-post-template {
		gap: 1.5rem !important;
	}
	.tr-hero > .wp-block-cover__inner-container {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ===========================================================
   7. Sticky mobile CTA bar
   =========================================================== */
.tr-mobile-cta {
	display: none;
	position: fixed;
	bottom: 0; left: 0; right: 0;
	z-index: 99;
	background: #0f0f0f;
	border-top: 1px solid rgba(255,255,255,0.08);
	padding: 8px;
	gap: 8px;
}
.tr-mobile-cta a {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 8px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}
.tr-mobile-cta a.tr-mobile-call {
	background: #fff;
	color: #000;
}
.tr-mobile-cta a.tr-mobile-book {
	background: #1769ff;
	color: #fff;
}
@media (max-width: 768px) {
	.tr-mobile-cta { display: flex; }
	body { padding-bottom: 72px; }
}

/* ===========================================================
   8. Airport travel times (.tr-times) — v2 homepage
   =========================================================== */
.tr-times {
	padding: clamp(3rem, 6vw, 5rem) 1.5rem;
	background: #fff;
}
.tr-times h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 500;
	margin: 0 0 0.5rem;
	letter-spacing: -0.005em;
}
.tr-times > p {
	max-width: 720px;
	margin: 0 auto 2rem;
	color: #555;
	font-size: 15px;
	line-height: 1.7;
}
.tr-times .tr-times-table {
	max-width: 720px;
	margin: 0 auto;
	border: 0;
}
.tr-times-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	border: 0;
}
/* Kill Gutenberg's default cell borders so the table reads as horizontal rules only */
.tr-times-table table th,
.tr-times-table table td {
	border: 0;
}
.tr-times-table thead th {
	text-align: left;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #666;
	padding: 0.85rem 1rem;
	border-bottom: 2px solid #111;
	background: transparent;
}
.tr-times-table tbody td {
	padding: 1rem;
	border-bottom: 1px solid #ececec;
	color: #2a2a2a;
}
.tr-times-table tbody tr:first-child td {
	background: #fafafa;
}
.tr-times-table tbody td:nth-child(2),
.tr-times-table tbody td:nth-child(3),
.tr-times-table thead th:nth-child(2),
.tr-times-table thead th:nth-child(3) {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.tr-times .tr-times-cta {
	margin: 1.5rem auto 0;
	max-width: 720px;
	color: #444;
	font-size: 15px;
}
.tr-times .tr-times-cta a {
	color: #000;
	text-decoration: none;
	border-bottom: 1px solid #000;
}

/* ===========================================================
   9. Service area (.tr-area) — v2 homepage
   =========================================================== */
.tr-area {
	padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
	background: #fafafa;
}
.tr-area h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 500;
	margin: 0 0 1rem;
	letter-spacing: -0.005em;
}
.tr-area > p {
	max-width: 720px;
	margin: 0 auto;
	color: #2a2a2a;
	font-size: 16px;
	line-height: 1.75;
}
.tr-area a {
	color: #1769ff;
	text-decoration: none;
	font-weight: 600;
}
.tr-area a:hover { text-decoration: underline; }

/* ===========================================================
   10. FAQ accordions (.tr-faq) — v2 homepage
   Uses native <details>/<summary> via wp:details block.
   =========================================================== */
.tr-faq {
	padding: clamp(3rem, 6vw, 5rem) 1.5rem;
	background: #fff;
	max-width: 100%;
}
.tr-faq > h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 500;
	margin: 0 0 2rem;
	letter-spacing: -0.005em;
}
.tr-faq .wp-block-details {
	border-bottom: 1px solid #e6e6e6;
	margin: 0;
}
.tr-faq .wp-block-details:first-of-type {
	border-top: 1px solid #e6e6e6;
}
.tr-faq .wp-block-details > summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.15rem 0.25rem;
	font-size: clamp(16px, 1.4vw, 18px);
	font-weight: 600;
	color: #111;
	line-height: 1.4;
	letter-spacing: -0.005em;
	position: relative;
	transition: color .15s ease;
}
.tr-faq .wp-block-details > summary::-webkit-details-marker { display: none; }
.tr-faq .wp-block-details > summary::after {
	content: "";
	margin-left: auto;
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	border-right: 2px solid #111;
	border-bottom: 2px solid #111;
	transform: rotate(45deg);
	transition: transform .25s ease;
	transform-origin: 70% 70%;
}
.tr-faq .wp-block-details[open] > summary::after {
	transform: rotate(-135deg);
}
.tr-faq .wp-block-details > summary:hover {
	color: #1769ff;
}
.tr-faq .wp-block-details > summary:focus-visible {
	outline: 2px solid #1769ff;
	outline-offset: 2px;
	border-radius: 2px;
}
.tr-faq .wp-block-details > p,
.tr-faq .wp-block-details > .wp-block-paragraph {
	margin: 0;
	padding: 0 0.25rem 1.25rem;
	color: #2a2a2a;
	font-size: 16px;
	line-height: 1.75;
}
.tr-faq .wp-block-details > p a {
	color: #1769ff;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}
