/*
Theme Name: Basecamp
Theme URI: https://example.com/basecamp
Author: Basecamp
Description: A modern block theme for kayak & bike tours, campgrounds, glamping and lake resorts. Built around the Trailscape 3D Destination Explorer plugin, with a one-click demo importer, experience pages and a pre-filled booking request form.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: basecamp
Tags: block-theme, full-site-editing, travel, one-column, wide-blocks, custom-colors, editor-style, block-patterns
*/

/* Small layer of CSS on top of theme.json — components that theme.json can't express. */

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #f2a54155; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }

/* header */
.bc-header { position: sticky; top: 0; z-index: 100; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--wp--preset--color--base) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 70%, transparent); }
.admin-bar .bc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bc-header { top: 0; } }
.bc-logo-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--wp--preset--color--primary); color: #fff; flex: none; }
.bc-logo-mark svg { width: 22px; height: 22px; }
.bc-header .wp-block-button__link { padding: .6em 1.15em; font-size: .92rem; }

/* eyebrow / badges */
.bc-eyebrow { display: inline-flex; align-items: center; gap: .5em; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem !important; font-weight: 700; color: var(--wp--preset--color--primary); }
.bc-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.has-surface-color.bc-eyebrow, .bc-hero .bc-eyebrow { color: #ffd38a; }

/* hero */
.bc-hero { min-height: min(88vh, 860px) !important; }
.bc-hero .wp-block-cover__inner-container { width: 100%; }
.bc-hero h1 { text-wrap: balance; max-width: 14ch; color: #fff; }
.bc-hero p { max-width: 46ch; }
.bc-stats { gap: clamp(1.5rem, 5vw, 4rem) !important; }
.bc-stats strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; letter-spacing: -0.03em; }
.bc-stats p { margin: 0; }
.is-style-bc-ghost .wp-block-button__link { background: rgba(255,255,255,.14) !important; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.65); backdrop-filter: blur(6px); }
.is-style-bc-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.26) !important; }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 1.5px; }

/* explorer section */
.bc-explorer-wrap { position: relative; }
.bc-explorer-wrap .tse-explorer { box-shadow: var(--wp--preset--shadow--lift); border-radius: 26px; }
.bc-pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.bc-pill-row p { margin: 0 !important; padding: .4rem .85rem; border-radius: 999px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); font-size: .85rem; font-weight: 600; }

/* cards */
.bc-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 22px; overflow: hidden; height: 100%;
  transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.bc-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--soft); }
.bc-card .wp-block-post-featured-image { margin: 0; border-radius: 0; overflow: hidden; }
.bc-card .wp-block-post-featured-image img { border-radius: 0 !important; transition: transform .6s ease; }
.bc-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.bc-card-body { padding: 1.25rem 1.4rem 1.4rem !important; flex: 1; display: flex; flex-direction: column; }
.bc-card-body > .bc-meta { margin-top: auto; }
.wp-block-post-template.is-layout-grid > li { height: 100%; }

/* experience meta (shortcode) */
.bc-meta { display: flex; flex-direction: column; gap: .8rem; }
.bc-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.bc-chips li { font-size: .8rem; font-weight: 600; padding: .3rem .65rem; border-radius: 8px; background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary); }
.bc-chips li.bc-type { background: var(--wp--preset--color--contrast); color: #fff; }
.bc-price-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--wp--preset--color--line); }
.bc-price { font-family: var(--wp--preset--font-family--heading); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.bc-price small { display: block; font-family: var(--wp--preset--font-family--body); font-size: .76rem; font-weight: 500; color: var(--wp--preset--color--muted); letter-spacing: 0; }
.bc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .7em 1.2em; border-radius: 999px; font-weight: 650; font-size: .92rem; text-decoration: none !important;
  background: var(--wp--preset--color--primary); color: #fff !important; transition: background .2s, transform .2s; }
.bc-btn:hover { background: var(--wp--preset--color--contrast); transform: translateY(-1px); }
.bc-btn.is-light { background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary) !important; }
.bc-btn.is-light:hover { background: #d4e4da; }
.bc-hl { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.bc-hl li { display: flex; gap: .6rem; align-items: baseline; }
.bc-hl li::before { content: "✓"; color: var(--wp--preset--color--primary); font-weight: 800; }
.bc-book-card { position: sticky; top: 110px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 22px; padding: 1.5rem; box-shadow: var(--wp--preset--shadow--soft); }
.bc-book-card .bc-price { font-size: 2rem; }
.bc-book-card .bc-btn { display: flex; width: 100%; }
.bc-book-card > * + * { margin-top: .8rem !important; }

/* steps */
.bc-step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.1rem !important; margin: 0 !important; }

/* routes */
.bc-routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.bc-route { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 1.3rem; color: #fff; display: flex; flex-direction: column; gap: .5rem; }
.bc-route-line { height: 6px; width: 56px; border-radius: 6px; }
.bc-route h3 { color: #fff; font-size: 1.3rem; margin: .3rem 0 0; }
.bc-route p { margin: 0; color: rgba(255,255,255,.75); font-size: .92rem; }
.bc-route dl { display: flex; gap: 1.1rem; margin: auto 0 0; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.14); }
.bc-route dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.bc-route dd { margin: 0; font-weight: 650; }

/* faq */
.wp-block-details summary { cursor: pointer; font-family: var(--wp--preset--font-family--heading); font-weight: 650; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--wp--preset--color--primary); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); }

/* booking form */
.bc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
  border-radius: 24px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--wp--preset--shadow--soft); }
.bc-form .bc-full { grid-column: 1 / -1; }
.bc-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .9rem; }
.bc-form label span.req { color: #c2410c; }
.bc-form input, .bc-form select, .bc-form textarea { box-sizing: border-box; font: inherit; font-weight: 400; width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid var(--wp--preset--color--line);
  background: #fff; color: var(--wp--preset--color--contrast); transition: border-color .15s, box-shadow .15s; }
.bc-form input:focus, .bc-form select:focus, .bc-form textarea:focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--primary) 15%, transparent); }
.bc-form .bc-hp { position: absolute !important; left: -9999px; }
.bc-form button { font: inherit; font-weight: 700; border: 0; cursor: pointer; padding: .95rem 1.6rem; border-radius: 999px; background: var(--wp--preset--color--primary); color: #fff; justify-self: start; }
.bc-form button:hover { background: var(--wp--preset--color--contrast); }
.bc-form .bc-summary { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--wp--preset--color--primary-soft); font-size: .92rem; }
.bc-form .bc-summary b { font-family: var(--wp--preset--font-family--heading); }
.bc-form .bc-note { font-size: .82rem; color: var(--wp--preset--color--muted); margin: 0; }
.bc-alert { padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.2rem; font-weight: 550; }
.bc-alert.is-success { background: #e1f3e8; color: #14532d; }
.bc-alert.is-error { background: #fdecea; color: #8a1c13; }
@media (max-width: 640px) { .bc-form { grid-template-columns: 1fr; } }

/* posts */
.bc-post-card .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; }
.wp-block-post-content > p:first-child { font-size: var(--wp--preset--font-size--large); }
.bc-footer a { text-decoration: none; }
.bc-footer a:hover { text-decoration: underline; }
.bc-footer .wp-block-navigation { --navigation-layout-direction: column; }

/* reveal on scroll (progressive: content is visible without JS) */
.js .bc-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .bc-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .bc-reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 700px) {
  .bc-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(21,48,42,.55) 0%, rgba(21,48,42,.8) 100%) !important; }
  .bc-hero .wp-block-buttons .wp-block-button { width: auto; }
}
