/*
Theme Name: This Bag Will Travel
Theme URI: https://thisbagwilltravel.com
Author: This Bag Will Travel
Description: A block theme for This Bag Will Travel: a travel-advisory landing page, tiered trip pricing, and a blog. Built on the brand style guide (copper, indigo, navy; Playfair Display and Overpass).
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: this-bag-will-travel
*/

/* Most styling lives in theme.json. This file holds only what theme.json cannot express. */

html { scroll-behavior: smooth; }

/* Small tracked caps label used above headings */
.tbwt-eyebrow {
	font-family: var(--wp--preset--font-family--overpass);
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-size: 0.75rem;
	color: var(--wp--preset--color--copper-dark);
	margin-bottom: 0.75rem;
}

/* Thin copper rule under section headings */
.tbwt-rule {
	width: 56px;
	height: 2px;
	background: var(--wp--preset--color--copper);
	border: 0;
	margin: 1rem 0 1.5rem;
}
.tbwt-rule.is-centered { margin-left: auto; margin-right: auto; }

/* Cards (tiers, tracks, season tiles) */
.tbwt-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 4px;
	padding: 1.75rem;
	height: 100%;
	box-sizing: border-box;
}
.tbwt-card.is-featured {
	border-color: var(--wp--preset--color--copper);
	box-shadow: 0 8px 24px rgba(42, 49, 80, 0.10);
}
.tbwt-card h3 { margin-top: 0; }

.tbwt-price {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 2.5rem;
	line-height: 1;
	color: var(--wp--preset--color--navy);
	margin: 0.5rem 0 0.25rem;
}
.tbwt-price-note {
	font-size: 0.8rem;
	color: var(--wp--preset--color--body-indigo);
	margin: 0 0 1rem;
}

/* Small-print band about what the fee covers */
.tbwt-fee-note {
	font-size: 0.875rem;
	line-height: 1.6;
}

/* Buttons: tracked caps, square-ish corners */
.wp-block-button__link {
	font-family: var(--wp--preset--font-family--overpass);
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 0.8rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button__link:hover {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

/* FAQ (details block) */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--rule);
	padding: 1rem 0;
}
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.15rem;
	color: var(--wp--preset--color--navy);
	cursor: pointer;
}

/* Keyboard focus */
a:focus-visible, button:focus-visible, summary:focus-visible, .wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--copper);
	outline-offset: 3px;
}

/* Sticky header on larger screens */
@media (min-width: 782px) {
	.tbwt-header { position: sticky; top: 0; z-index: 50; }
	.admin-bar .tbwt-header { top: 32px; }
}

/* Blog post cards */
.tbwt-post-card img { border-radius: 4px; }
.tbwt-post-card .wp-block-post-title a { text-decoration: none; }
.tbwt-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--copper-dark); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* Side padding on small screens (full-width sections keep full-bleed backgrounds) */
.wp-block-group.alignfull,
.wp-block-cover.alignfull,
.tbwt-pad,
.tbwt-header {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}

/* Photo at the top of a card runs edge to edge */
.tbwt-card { overflow: hidden; }
.tbwt-card > .wp-block-image:first-child {
	margin: -1.75rem -1.75rem 1.25rem;
}
.tbwt-card > .wp-block-image:first-child img {
	width: 100%;
	display: block;
}

/* Photos */
.wp-block-image img { border-radius: 4px; height: auto; }
.wp-block-cover { min-height: 420px; }
.wp-block-cover .wp-block-cover__inner-container { padding-top: 4rem; padding-bottom: 4rem; box-sizing: border-box; }

/* Callout (how I'm paid) */
.tbwt-callout {
	background: var(--wp--preset--color--white);
	border-left: 3px solid var(--wp--preset--color--copper);
	padding: 1.25rem 1.5rem;
}
.tbwt-callout h3 { margin-top: 0; }

/* Short copper bar above a perk title */
.tbwt-bar {
	width: 36px; height: 2px; border: 0; margin: 0 0 1rem;
	background: var(--wp--preset--color--copper);
}

/* Big number + label */
.tbwt-stat {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 2.4rem; line-height: 1;
	color: var(--wp--preset--color--navy);
	margin: 0 0 0.35rem;
}
.tbwt-stat-label {
	font-family: var(--wp--preset--font-family--overpass);
	font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
	font-size: 0.72rem; margin: 0;
}

/* Tier comparison table */
.tbwt-compare { overflow-x: auto; }
.tbwt-compare table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.9rem; }
.tbwt-compare th, .tbwt-compare td { border: 1px solid var(--wp--preset--color--rule); padding: 0.75rem 1rem; text-align: center; vertical-align: middle; }
.tbwt-compare th { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); font-family: var(--wp--preset--font-family--overpass); font-weight: 700; letter-spacing: 0.06em; line-height: 1.5; }
.tbwt-compare th:first-child, .tbwt-compare td:first-child { text-align: left; }
.tbwt-compare td:first-child { color: var(--wp--preset--color--navy); }
.tbwt-compare tbody tr:nth-child(even) td { background: var(--wp--preset--color--white); }
