/*
Theme Name: The3DTravel Child
Theme URI: https://the3dtravel.com
Description: Child theme of Astra for The3DTravel.com. Brand: Place, Story, Time.
Author: The3DTravel
Template: astra
Version: 0.7.9
Text Domain: the3dtravel-child
*/

/* ---------- Brand tokens (verified contrast, see brand-brief.md) ---------- */
@font-face {
	font-family: "Newsreader";
	src: url("fonts/newsreader-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--t3d-ink: #1a1a1a;
	--t3d-limestone: #efebe4;
	--t3d-paper: #f7f4ef;
	--t3d-rust: #9a4a1f;
	--t3d-rust-dark: #7a3a17;
	--t3d-patina: #2c5a55;
	--t3d-muted: #55504a;
	--t3d-brass: #c9b28a;
	--t3d-error: #a1124f;
	--t3d-focus: #1d4ed8;
	--t3d-line: #d9d4ca;
	--t3d-cream: #f7f1e6;
	--t3d-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--t3d-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	/* Bootstrap-style container: outer width per device, inner padding. Content width = max - 2 x pad. */
	--t3d-max: 100%;
	--t3d-pad: 16px;
	--t3d-read: 800px; /* reading column for text-heavy pages */
}
@media (min-width: 576px)  { :root { --t3d-max: 540px; } }
@media (min-width: 768px)  { :root { --t3d-max: 720px; --t3d-pad: 20px; } }
@media (min-width: 992px)  { :root { --t3d-max: 960px; } }
@media (min-width: 1200px) { :root { --t3d-max: 1140px; } }
@media (min-width: 1400px) { :root { --t3d-max: 1320px; } }

/* ---------- Base ---------- */
body.t3d {
	font-family: var(--t3d-sans);
	font-size: 18px;
	line-height: 1.6;
	color: var(--t3d-ink);
	background: #fff;
}

body.t3d h1, body.t3d h2, body.t3d h3, body.t3d h4,
body.t3d .entry-title, body.t3d .product_title {
	font-family: var(--t3d-serif);
	color: var(--t3d-ink);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}
body.t3d h1, body.t3d .product_title { font-size: clamp(2.1rem, 5vw, 3.3rem); }
body.t3d h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); margin-top: 0; }
body.t3d h3 { font-size: 1.35rem; }
body.t3d p, body.t3d li { color: var(--t3d-ink); }

body.t3d a { color: var(--t3d-rust); text-underline-offset: 0.15em; }
body.t3d a:hover, body.t3d a:focus { color: var(--t3d-rust-dark); }
body.t3d :focus-visible { outline: 3px solid var(--t3d-focus); outline-offset: 3px; }

/* ---------- Buttons ---------- */
body.t3d .wp-block-button__link,
body.t3d .button,
body.t3d button.button,
body.t3d a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.4rem;
	border-radius: 6px;
	border: 2px solid var(--t3d-rust);
	background: var(--t3d-rust);
	color: #fff;
	font-family: var(--t3d-sans);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
}
body.t3d .wp-block-button__link:hover,
body.t3d .button:hover { background: var(--t3d-rust-dark); border-color: var(--t3d-rust-dark); color: #fff; }
body.t3d .t3d-btn-quiet .wp-block-button__link {
	background: transparent;
	color: var(--t3d-ink);
	border-color: var(--t3d-ink);
}
body.t3d .t3d-btn-quiet .wp-block-button__link:hover { background: var(--t3d-ink); color: #fff; }

/* ---------- Header ---------- */
body.t3d .site-header { border-bottom: 1px solid var(--t3d-line); }
body.t3d .main-header-menu .menu-link { color: var(--t3d-ink); font-weight: 500; }
body.t3d .main-header-menu .menu-link:hover,
body.t3d .main-header-menu .current-menu-item > .menu-link { color: var(--t3d-rust); }

/* ---------- Full-width page sections (pages built from blocks) ---------- */
body.t3d.t3d-sections #primary,
body.t3d.t3d-sections .site-content > .ast-container { max-width: none; padding: 0; margin: 0; }
body.t3d.t3d-sections .entry-content > .t3d-section { margin: 0; }
body.t3d.t3d-sections .site-main > article { margin: 0; padding: 0; }

.t3d-section { --t3d-col: var(--t3d-max); }
.t3d-section.t3d-narrow { --t3d-col: min(var(--t3d-max), var(--t3d-read)); }
body.t3d .entry-content > .t3d-section,
body.t3d .t3d-section {
	width: 100%;
	max-width: none;
	margin: 0;
	padding-top: clamp(48px, 8vw, 96px);
	padding-bottom: clamp(48px, 8vw, 96px);
	padding-left: max(var(--t3d-pad), calc((100% - var(--t3d-col)) / 2 + var(--t3d-pad)));
	padding-right: max(var(--t3d-pad), calc((100% - var(--t3d-col)) / 2 + var(--t3d-pad)));
	box-sizing: border-box;
}
body.t3d .entry-content > .t3d-section.t3d-section--tight,
body.t3d .t3d-section.t3d-section--tight { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
body.t3d .t3d-narrow .t3d-measure, body.t3d .t3d-narrow .t3d-legal, body.t3d .t3d-narrow .t3d-lead { max-width: none; }

/* Header, shop and product pages, and the copyright bar share the same container */
body.t3d #masthead .ast-container,
body.t3d #content > .ast-container,
body.t3d #colophon .ast-container {
	max-width: var(--t3d-max);
	padding-left: var(--t3d-pad);
	padding-right: var(--t3d-pad);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}
/* Pages built from sections: the sections carry the container, so the content wrapper is full-bleed */
body.t3d.t3d-sections #content > .ast-container { max-width: none; padding-left: 0; padding-right: 0; }
.t3d-band { background: var(--t3d-limestone); }
.t3d-paper { background: var(--t3d-paper); }
.t3d-night { background: var(--t3d-ink); }
body.t3d .t3d-night h2, body.t3d .t3d-night h3, body.t3d .t3d-night p, body.t3d .t3d-night li { color: #fff; }
body.t3d .t3d-night a { color: var(--t3d-brass); }

.t3d-kicker, body.t3d .t3d-kicker {
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--t3d-rust);
	margin-bottom: 0.5rem;
}
.t3d-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 44em; }
.t3d-measure { max-width: 46em; }
body.t3d .t3d-small, body.t3d .t3d-section figcaption, body.t3d .wp-element-caption { font-size: 0.85rem; color: var(--t3d-muted); }

/* Hero */
.t3d-hero h1 { margin: 0 0 1rem; max-width: 18em; }
.t3d-hero .wp-block-columns { align-items: center; gap: clamp(24px, 4vw, 56px); }
.t3d-hero figure { margin: 0; }
.t3d-hero img { border-radius: 8px; width: 100%; height: auto; }

/* The rule sentence (spec section 54) */
.t3d-rule {
	border-left: 4px solid var(--t3d-rust);
	padding: 0.6rem 0.9rem;
	background: #fff;
	font-weight: 600;
}

/* Three dimensions */
.t3d-dims { gap: clamp(20px, 3vw, 40px); }
.t3d-dim {
	border-top: 3px solid var(--t3d-rust);
	padding-top: 1rem;
}
.t3d-dim h3 { margin: 0.25rem 0 0.5rem; }
body.t3d .t3d-dim .t3d-kicker { color: var(--t3d-patina); }

/* Steps */
.t3d-steps { counter-reset: t3d-step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.t3d-steps > li { counter-increment: t3d-step; position: relative; padding-left: 3.25rem; }
.t3d-steps > li::before {
	content: counter(t3d-step);
	position: absolute; left: 0; top: 0;
	width: 2.25rem; height: 2.25rem; border-radius: 50%;
	background: var(--t3d-rust); color: #fff;
	font-family: var(--t3d-serif); font-weight: 600; font-size: 1.15rem;
	display: flex; align-items: center; justify-content: center;
}

/* FAQ */
.t3d-faq .wp-block-details {
	border-bottom: 1px solid var(--t3d-line);
	padding: 1rem 0;
}
.t3d-faq summary {
	font-family: var(--t3d-serif);
	font-size: 1.2rem;
	font-weight: 600;
	cursor: pointer;
	min-height: 32px;
}
.t3d-faq .wp-block-details > p { margin: 0.75rem 0 0; }

/* Legal text */
.t3d-legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.t3d-legal { max-width: none; }

/* ---------- Tour cards (WooCommerce loop) ---------- */
body.t3d ul.products li.product {
	background: #fff;
	border: 1px solid var(--t3d-line);
	border-radius: 8px;
	overflow: hidden;
	padding-bottom: 1rem;
}
body.t3d ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--t3d-serif);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--t3d-ink);
	padding: 0 1rem;
}
body.t3d ul.products li.product .price { color: var(--t3d-ink); padding: 0 1rem; font-weight: 600; }
body.t3d ul.products li.product .button { margin: 0.5rem 1rem 0; }
body.t3d ul.products li.product .ast-woo-product-category { padding: 0 1rem; color: var(--t3d-muted); }

/* ---------- Tour product page ---------- */
body.t3d .t3d-per { font-size: 0.9rem; font-weight: 400; color: var(--t3d-muted); }
body.t3d.single-product .summary .price { color: var(--t3d-ink); font-size: 1.6rem; font-weight: 600; }
.t3d-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.25rem; margin: 1rem 0 1.25rem; padding: 0; }
.t3d-facts__row { margin: 0; }
.t3d-facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t3d-muted); margin: 0; font-weight: 600; }
.t3d-facts dd { margin: 0; font-weight: 600; }
.t3d-advisory { border-left: 4px solid var(--t3d-patina); padding: 0.6rem 0.9rem; background: var(--t3d-paper); }
.t3d-selfguided { margin: 1rem 0; padding: 0.9rem 1rem; background: var(--t3d-limestone); border-radius: 6px; }
.t3d-selfguided__rule { font-weight: 700; margin: 0 0 0.25rem; }
.t3d-selfguided__upside { margin: 0; }
.t3d-coming-soon__label {
	display: inline-block;
	font-weight: 700;
	padding: 0.45rem 0.85rem;
	margin-right: 0.5rem;
	border: 2px solid var(--t3d-ink);
	border-radius: 6px;
}
body.t3d.single-product .woocommerce-tabs h2 { font-size: 1.5rem; }
body.t3d .t3d-credits, body.t3d .t3d-credits li { font-size: 0.85rem; color: var(--t3d-muted); }

/* ---------- Waitlist form (Fluent Forms) ---------- */
body.t3d .t3d-waitlist-box { margin: 1.25rem 0; padding: 1rem 1.1rem; border: 1px solid var(--t3d-line); border-radius: 8px; background: #fff; }
body.t3d .t3d-waitlist-box__title { font-family: var(--t3d-serif); font-weight: 600; font-size: 1.2rem; margin: 0 0 0.5rem; }
body.t3d .fluentform .ff-el-input--label label { font-weight: 600; color: var(--t3d-ink); font-size: 0.95rem; }
body.t3d .fluentform .ff-el-form-control {
	min-height: 48px; border: 1px solid #8a847b; border-radius: 6px; padding: 0.6rem 0.8rem;
	font-size: 1rem; color: var(--t3d-ink); background: #fff;
}
body.t3d .fluentform .ff-el-form-control:focus { border-color: var(--t3d-focus); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25); outline: none; }
body.t3d .fluentform .ff_t_c, body.t3d .fluentform .ff-el-tc { color: var(--t3d-ink); font-size: 0.95rem; }
body.t3d .fluentform input[type="checkbox"] { width: 20px; height: 20px; margin: 0.15rem 0.6rem 0 0; flex: 0 0 auto; accent-color: var(--t3d-rust); }
body.t3d .fluentform .ff-el-form-check-label { display: flex; align-items: flex-start; }
body.t3d .fluentform .ff-btn-submit {
	min-height: 48px; padding: 0.75rem 1.4rem; border-radius: 6px; border: 2px solid var(--t3d-rust);
	background: var(--t3d-rust) !important; color: #fff !important; font-weight: 600; font-size: 1rem;
}
body.t3d .fluentform .ff-btn-submit:hover { background: var(--t3d-rust-dark) !important; border-color: var(--t3d-rust-dark); }
body.t3d .fluentform .error, body.t3d .fluentform .text-danger { color: var(--t3d-error); }
body.t3d .ff-message-success { border: 1px solid var(--t3d-patina); border-radius: 6px; padding: 0.9rem 1rem; color: var(--t3d-ink); background: var(--t3d-paper); }
body.t3d .t3d-center { text-align: center; }
body.t3d .t3d-center .fluentform { text-align: left; max-width: 520px; margin: 1.25rem auto 0; }

/* ---------- Guides (blog) ---------- */
body.t3d.single-post, body.t3d.single-post #content, body.t3d.single-post .ast-article-single,
body.t3d.blog, body.t3d.blog #content { background: #fff; }
body.t3d.single-post .ast-article-single .entry-header,
body.t3d.single-post .ast-article-single .entry-content { max-width: min(100%, var(--t3d-read)); margin-left: auto; margin-right: auto; }
body.t3d.single-post .entry-content[data-ast-blocks-layout] > * { max-width: none; margin-left: 0; margin-right: 0; }
body.t3d.single-post .entry-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.5rem; }
body.t3d .entry-meta, body.t3d .entry-meta * { color: var(--t3d-muted); font-weight: 500; }
body.t3d.single-post .entry-content > .wp-block-image:first-child { margin: 1.5rem 0 2rem; }
body.t3d.single-post .entry-content > .wp-block-image:first-child img { border-radius: 8px; width: 100%; height: auto; }
body.t3d .wp-block-quote { border-left: 4px solid var(--t3d-patina); background: var(--t3d-paper); padding: 0.8rem 1rem; margin: 1.5rem 0; }
body.t3d .t3d-archive-head { max-width: none; margin: 0 0 2rem; }
body.t3d .t3d-archive-head .t3d-lead { max-width: none; }
body.t3d .t3d-archive-head h1 { margin: 0.25rem 0 0.75rem; }
body.t3d.blog .ast-row .entry-title a, body.t3d.blog .entry-title a { color: var(--t3d-ink); }
body.t3d.blog .entry-title a:hover { color: var(--t3d-rust); }

/* ---------- Accessibility fixes (axe-core audit 2026-10-08) ---------- */
body.t3d #content ul.products li.product .ast-woo-product-category,
body.t3d .woocommerce-breadcrumb, body.t3d .woocommerce-breadcrumb a { color: var(--t3d-muted); opacity: 1; }
body.t3d #content ul.products li.product .ast-woo-product-category { opacity: 1; }
body.t3d .fluentform a, body.t3d .entry-content p a, body.t3d .entry-content li a, body.t3d .t3d-section p a, body.t3d .t3d-section li a { text-decoration: underline; }
body.t3d .fluentform input[type="checkbox"] { width: 24px; height: 24px; }
body.t3d .t3d-credits li { margin-bottom: 0.6rem; line-height: 1.6; }

/* Even line lengths for headings and intro paragraphs (no short orphan lines) */
body.t3d h1, body.t3d h2, body.t3d h3, body.t3d .t3d-lead { text-wrap: balance; }

/* Tour button rows (articles and pages) */
body.t3d .t3d-tour-buttons, body.t3d .wp-block-buttons { gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
body.t3d .t3d-tour-buttons .wp-block-button__link { min-height: 44px; padding: 0.6rem 1.1rem; font-size: 0.95rem; }

/* Header submenu */
body.t3d .main-header-menu .sub-menu { background: #fff; border-top: 2px solid var(--t3d-rust); }
body.t3d .main-header-menu .sub-menu .menu-link { color: var(--t3d-ink); }

/* ---------- Footer ---------- */
body.t3d .t3d-footer { background: var(--t3d-ink); color: #fff; padding: clamp(40px, 6vw, 72px) max(var(--t3d-pad), calc((100% - var(--t3d-max)) / 2 + var(--t3d-pad))) 24px; text-align: left; }
body.t3d .t3d-footer__inner { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; align-items: start; }
body.t3d .t3d-footer p, body.t3d .t3d-footer li { color: #fff; }
body.t3d .t3d-footer .t3d-footer__mark { font-family: var(--t3d-serif); font-size: 1.6rem; font-weight: 600; color: #fff; margin: 0 0 0.5rem; }
body.t3d .t3d-footer .t3d-footer__line { color: var(--t3d-brass); margin: 0 0 1rem; max-width: 22em; }
body.t3d .t3d-footer .t3d-footer__title { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3d-brass); font-weight: 700; margin: 0 0 0.75rem; }
body.t3d .t3d-footer ul { list-style: none; margin: 0; padding: 0; }
body.t3d .t3d-footer li { margin: 0 0 0.4rem; line-height: 1.4; }
body.t3d .t3d-footer a { color: #fff; text-decoration: none; }
body.t3d .t3d-footer a:hover, body.t3d .t3d-footer a:focus { color: var(--t3d-brass); text-decoration: underline; }
body.t3d .site-footer .site-below-footer-wrap,
body.t3d .site-footer .ast-builder-grid-row-container { background: var(--t3d-ink); border-top: 1px solid #3a3a3a; }
body.t3d .site-footer .ast-footer-copyright, body.t3d .site-footer .ast-footer-copyright p { color: #d6d1c8; font-size: 0.85rem; }

/* Tour cards while a tour is not on sale: a quiet outline, not a buy button */
body.t3d ul.products li.product .button.t3d-soon {
	background: transparent;
	color: var(--t3d-ink);
	border-color: var(--t3d-ink);
}
body.t3d ul.products li.product .button.t3d-soon:hover { background: var(--t3d-ink); color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 921px) {
	body.t3d .t3d-footer__inner { grid-template-columns: 1fr 1fr; }
	body.t3d .t3d-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	body.t3d { font-size: 17px; }
	.t3d-facts { grid-template-columns: 1fr; }
	body.t3d .t3d-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Promotions display (plugin t3d-promotions; dormant until sales open) ---------- */
body.t3d .t3d-promo { font-size: 0.95rem; line-height: 1.45; }
body.t3d .t3d-promo--eyebrow { background: #2C5A55; color: #fff; text-align: center; padding: 8px var(--t3d-pad, 16px); }
body.t3d .t3d-promo--eyebrow a { color: #fff; text-decoration: underline; }
body.t3d .t3d-promo--banner { background: #EFEBE4; border-left: 4px solid #9A4A1F; color: #1A1A1A; padding: 12px 16px; margin: 0 0 16px; }
body.t3d .t3d-promo--footer { text-align: center; padding: 8px 0; color: inherit; }
body.t3d .t3d-promo__code { font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; }
body.t3d .t3d-promo__ends { white-space: normal; }
body.t3d .t3d-promo-card { border: 1px solid #C9B28A; padding: 16px 20px; margin: 0 0 16px; background: #fff; color: #1A1A1A; }
body.t3d .t3d-promo-card h3 { margin-top: 0; }
body.t3d .t3d-promo-card__dates { color: #55504A; font-size: 0.95rem; }

/* ---------- Tour filter pills (All tours, shop and category archives) ---------- */
body.t3d .t3d-pills { margin: 0 0 32px; display: grid; gap: 12px; }
body.t3d .t3d-pills__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.t3d .t3d-pills__label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #55504A; margin-right: 4px; min-width: 9.5em; }
body.t3d .t3d-pill { display: inline-block; padding: 7px 16px; border: 1px solid #C9B28A; border-radius: 999px; background: #fff; color: #1A1A1A; text-decoration: none; font-size: 0.95rem; line-height: 1.3; }
body.t3d .t3d-pill:hover { border-color: #9A4A1F; color: #9A4A1F; }
body.t3d .t3d-pill:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 2px; }
body.t3d .t3d-pill.is-active { background: #9A4A1F; border-color: #9A4A1F; color: #fff; }
body.t3d .t3d-all__count { color: #55504A; margin: 0 0 12px; }
body.t3d .t3d-all__country { margin: 0 0 40px; }
body.t3d .t3d-all__heading { border-bottom: 1px solid #C9B28A; padding-bottom: 8px; }
body.t3d .t3d-all__city { margin-top: 24px; }
@media (max-width: 767px) {
	body.t3d .t3d-pills__label { flex: 0 0 100%; min-width: 0; }
	body.t3d .t3d-pill { padding: 6px 13px; font-size: 0.9rem; }
}
