/*
Theme Name: Clearwater Adventures
Theme URI: https://clearwateradventures.com/
Author: Clearwater Adventures
Description: Custom block theme for Clearwater Adventures, guided fly fishing on the Bow River in Calgary, Alberta. Edit every page in the WordPress block editor.
Version: 1.0.6
Requires at least: 6.5
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: clearwater
*/

:root {
	--cw-navy: #16324A; --cw-teal: #2A7C8C; --cw-rose: #B23A48; --cw-rose-dark: #8C2A36;
	--cw-ground: #EEF3F4; --cw-paper: #FAFCFC; --cw-mist: #DDEAEC; --cw-line: #CFDDE0;
	--cw-ink: #13222E; --cw-muted: #44545E; --cw-deep: #0F2233; --cw-blush: #F6C3CB;
	--cw-radius: 10px;
}

body { -webkit-font-smoothing: antialiased; }
img { height: auto; max-width: 100%; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group { margin-top: 0; }
.wp-block-post-content > * + * { margin-block-start: 0; }

/* ---------- Header ---------- */
.cw-site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--cw-line); }
.admin-bar .cw-site-header { top: 32px; }
.cw-topbar { background: var(--cw-navy); color: #DCE7EA; font-size: 14px; justify-content: space-between; gap: 12px;
	padding: 8px clamp(20px, 4vw, 48px) !important; margin: 0 !important; }
.cw-topbar p { margin: 0; }
.cw-topbar a { color: #fff; font-weight: 700; }
.cw-header-row { justify-content: space-between; align-items: center; gap: 24px; padding: 12px clamp(20px, 4vw, 48px) !important; margin: 0 !important; flex-wrap: nowrap; }
.cw-logo { margin: 0 !important; flex-shrink: 0; }
.cw-logo img { width: 160px; display: block; }
.cw-nav { font-size: 15px; font-weight: 600; gap: 4px 20px; }
.cw-nav a { color: var(--cw-navy); }
.cw-nav a:hover { color: var(--cw-rose); }
.cw-nav .cw-nav-cta > a { background: var(--cw-rose); color: #fff !important; padding: 10px 18px; border-radius: 6px; }
.cw-nav .cw-nav-cta > a:hover { background: var(--cw-rose-dark); }
.wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 18px; font-size: 20px; }

/* ---------- Sections ---------- */
.cw-section { padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 48px) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.cw-section + .cw-section { padding-top: 0 !important; }
.cw-dark + .cw-section, .cw-section + .cw-dark, .cw-mist + .cw-section, .cw-section + .cw-mist,
.cw-trust-bar + .cw-section, .cw-page-hero + .cw-section, .cw-paper + .cw-section, .cw-section + .cw-paper { padding-top: clamp(48px, 7vw, 88px) !important; }
.cw-dark { background: var(--cw-navy); color: #DCE7EA; }
.cw-dark h1, .cw-dark h2, .cw-dark h3, .cw-dark h4 { color: #fff; }
.cw-dark a { color: var(--cw-blush); }
.cw-dark .cw-eyebrow { color: #8FD0DC; }
.cw-dark .cw-card { color: var(--cw-ink); }
.cw-dark .cw-card h3, .cw-dark .cw-card h4 { color: var(--cw-navy); }
.cw-dark .cw-card a { color: var(--cw-rose); }
.cw-mist { background: var(--cw-mist); }
.cw-paper { background: var(--cw-paper); }
.cw-page-hero { background: var(--cw-paper); border-bottom: 1px solid var(--cw-line); }

.cw-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cw-teal); margin-bottom: 8px !important; }
.cw-lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--cw-muted); max-width: 680px; }
.cw-dark .cw-lead { color: #C7D6DA; }
.cw-small { font-size: 14px; color: var(--cw-muted); }
.cw-crumb { font-size: 14px; color: var(--cw-muted); }
.cw-crumb a { color: var(--cw-teal); }
.cw-intro { margin-bottom: 28px !important; }
.cw-intro > * { margin-left: 0 !important; }

/* ---------- Hero ---------- */
.cw-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden;
	padding: clamp(40px, 8vw, 96px) clamp(20px, 4vw, 48px) !important; margin-top: 0 !important; margin-bottom: 0 !important; background: var(--cw-deep); }
.cw-hero > .cw-hero-bg { position: absolute; inset: 0; margin: 0 !important; max-width: none !important; width: 100%; height: 100%; }
.cw-hero > .cw-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cw-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,24,36,.82) 0%, rgba(10,24,36,.55) 45%, rgba(10,24,36,.1) 100%); }
.cw-hero > .cw-hero-text { position: relative; z-index: 2; max-width: 680px !important; margin: 0 !important; color: #fff; }
.cw-hero h1 { color: #fff; }
.cw-hero .cw-eyebrow { color: #A9DCE5; }
.cw-hero .cw-lead { color: #E3ECEE; }


.cw-hero-cols { align-items: center !important; gap: clamp(28px, 4vw, 56px) !important; }
.cw-hero-photo img { aspect-ratio: 4/3; object-fit: cover; }
.cw-hero-tall img { aspect-ratio: 4/5; object-position: center 40%; }
.cw-rounded img { border-radius: var(--cw-radius); }
.cw-tall img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.cw-wide img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.wp-element-caption { font-size: 14px; color: var(--cw-muted); text-align: left; margin-top: 8px; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--cw-navy); border: 2px solid currentColor; padding: 13px 24px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.08); color: var(--cw-rose); }
.wp-block-buttons { gap: 12px; margin-top: 24px; }

/* Outline buttons on dark backgrounds */
.cw-hero .wp-block-button.is-style-outline .wp-block-button__link,
.cw-cta .wp-block-button.is-style-outline .wp-block-button__link,
.cw-dark .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }

/* ---------- Trust bar ---------- */
.cw-trust-bar { background: #fff; border-bottom: 1px solid var(--cw-line); padding-top: 22px !important; padding-bottom: 22px !important; }
.cw-trust { gap: 24px !important; margin: 0 !important; }
.cw-trust p { margin: 0; font-size: 15px; color: var(--cw-muted); padding-left: 14px; border-left: 3px solid var(--cw-teal); }
.cw-trust strong { color: var(--cw-navy); font-size: 16px; }

/* ---------- Cards ---------- */
.cw-card { background: #fff; border: 1px solid var(--cw-line); border-radius: var(--cw-radius); padding: 26px !important; height: 100%; box-sizing: border-box; }
.cw-card > * { margin-left: 0 !important; margin-right: 0 !important; }
.cw-card h3, .cw-card h4 { margin-top: 0; }
.cw-trip, .cw-guides .cw-card { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.cw-card-img { margin: 0 !important; }
.cw-card-img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; border-radius: 0; }
.cw-pos-low img, .cw-card-img img[src*="mountain-pool-waterfall"] { object-position: center 78%; }
.cw-portrait img { aspect-ratio: 3/4; object-position: center; }
.cw-card-body { padding: 22px 24px 26px !important; flex: 1; display: flex; flex-direction: column; }
.cw-card-body > .wp-block-buttons { margin-top: auto; padding-top: 12px; }
.cw-price { font-family: var(--wp--preset--font-family--display); font-size: 34px; font-weight: 600; color: var(--cw-navy); margin: 8px 0 !important; line-height: 1.1; }
.cw-price span { font-family: var(--wp--preset--font-family--body); font-size: 14px; font-weight: 500; color: var(--cw-muted); }
.cw-price-card .cw-price { font-size: 38px; }
.cw-price-card { padding: 20px 22px !important; }
.cw-price-card p { margin: 0 !important; }
.cw-prices { gap: 16px !important; margin-top: 20px !important; }
.cw-tint { background: var(--cw-mist); border-color: var(--cw-mist); }
.cw-rose { background: var(--cw-rose); border-color: var(--cw-rose); color: #fff; }
.cw-rose h3, .cw-rose .cw-eyebrow { color: #fff; }
.cw-rose .wp-block-button__link { background: #fff; color: var(--cw-rose); }
.cw-navy { background: var(--cw-navy); border-color: var(--cw-navy); color: #DCE7EA; }
.cw-navy h3 { color: #fff; }
.cw-navy a { color: #fff; font-size: 26px; }
.cw-navy .cw-small { color: #AFC3C9; }
.cw-trips { gap: 24px !important; }
.cw-seasons { gap: 20px !important; }
.cw-seasons + .cw-seasons { margin-top: 20px !important; }
.cw-wide { margin-bottom: 32px !important; }
.cw-links { gap: 16px !important; margin-top: 24px !important; }
.cw-link-card { margin: 0; }
.cw-link-card a { display: block; background: #fff; border: 1px solid var(--cw-line); border-radius: var(--cw-radius); padding: 18px 20px; color: var(--cw-muted); font-size: 15px; }
.cw-link-card a strong { color: var(--cw-navy); font-size: 17px; }
.cw-link-card a:hover { border-color: var(--cw-teal); }
.cw-split { gap: clamp(28px, 5vw, 64px) !important; align-items: center !important; }

.wp-block-list { padding-left: 1.2em; }
.wp-block-list li { margin-bottom: 8px; }
.wp-block-list li::marker { color: var(--cw-teal); }

/* ---------- Timeline ---------- */
.cw-timeline { gap: 20px !important; counter-reset: step; }
.cw-step { border-top: 3px solid var(--cw-teal); padding-top: 16px !important; }
.cw-step h3 { font-size: 21px; margin-top: 0; }

/* ---------- Quotes ---------- */
.cw-quotes { gap: 20px !important; }
.wp-block-quote { border-left: 3px solid var(--cw-rose); padding: 4px 0 4px 20px; margin: 0; }
.wp-block-quote p { font-family: var(--wp--preset--font-family--display); font-size: 21px; line-height: 1.4; color: var(--cw-navy); }
.wp-block-quote cite { font-style: normal; font-size: 14px; font-weight: 700; color: var(--cw-muted); letter-spacing: .04em; }
.cw-quotes .wp-block-quote { background: #fff; border-radius: var(--cw-radius); padding: 24px; border-left-width: 4px; height: 100%; box-sizing: border-box; }

/* ---------- FAQ ---------- */
.cw-faq-cols > .wp-block-column:first-child { flex-basis: 34% !important; }
.wp-block-details { border-bottom: 1px solid var(--cw-line); padding: 18px 0; }
.wp-block-details summary { font-weight: 700; color: var(--cw-navy); font-size: 18px; cursor: pointer; list-style: none; position: relative; padding-right: 32px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 24px; color: var(--cw-rose); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details p { color: var(--cw-muted); margin: 12px 0 0; }

/* ---------- CTA ---------- */
.cw-cta { background: var(--cw-navy); border-radius: 14px; padding: clamp(28px, 4vw, 48px) !important; color: #DCE7EA; }
.cw-cta h2 { color: #fff; margin-top: 0; }
.cw-cta > .wp-block-columns { align-items: center !important; margin: 0; }
.cw-cta-buttons { justify-content: flex-end; }


/* ---------- Setup placeholders (delete once replaced) ---------- */
.cw-setup-note { border: 2px dashed var(--cw-teal); background: #F1F8F9; border-radius: var(--cw-radius); padding: 18px 20px; font-size: 15px; color: var(--cw-teal); }

/* ---------- Fishing report ---------- */
.cw-post-card { margin-bottom: 20px !important; height: auto; }
.cw-post-card .wp-block-post-title { font-size: 26px; margin: 4px 0 8px; }
.cw-post-card .wp-block-post-title a { color: var(--cw-navy); }
.wp-block-post-date { font-size: 14px; color: var(--cw-teal); font-weight: 700; }
.wp-block-latest-posts { padding: 0; }
.wp-block-latest-posts li a { font-family: var(--wp--preset--font-family--display); font-size: 21px; color: var(--cw-navy); }
.wp-block-latest-posts__post-date { font-size: 13px; color: var(--cw-teal); }
.wp-block-latest-posts__post-excerpt { color: var(--cw-muted); margin-top: 6px; }

/* ---------- Footer ---------- */
.cw-footer { background: var(--cw-deep); color: #AFC3C9; padding: 64px clamp(20px, 4vw, 48px) 32px !important; margin: 0 !important; font-size: 15px; }
.cw-footer h3, .cw-footer h4 { color: #fff; margin-top: 0; }
.cw-footer a { color: #DCE7EA; line-height: 2; }
.cw-footer a:hover { color: #fff; }
.cw-footer .cw-small { color: #7F98A0; border-top: 1px solid #22394B; padding-top: 20px; margin-top: 32px; }
.cw-footer-cols > .wp-block-column:first-child { flex-basis: 36% !important; }

/* ---------- Mobile ---------- */
@media (max-width: 1240px) {
	.cw-logo img { width: 130px; }
	.cw-header-row { gap: 16px; }
	.cw-nav { font-size: 14px; gap: 4px 13px; }
	.cw-nav .cw-nav-cta > a { padding: 8px 13px; }
}
@media (max-width: 1040px) and (min-width: 600px) {
	.cw-header-row { flex-wrap: wrap; row-gap: 8px; }
	.cw-nav { width: 100%; }
	.cw-nav .wp-block-navigation__container { justify-content: flex-start; }
}
@media (max-width: 781px) {
	.admin-bar .cw-site-header { top: 46px; }
	.cw-topbar p:first-child { display: none; }
	.cw-topbar { justify-content: center; }
	.cw-logo img { width: 128px; }
	.cw-hero { min-height: 560px; }
	.cw-hero::after { background: linear-gradient(0deg, rgba(10,24,36,.88) 0%, rgba(10,24,36,.55) 60%, rgba(10,24,36,.2) 100%); }
	.cw-cta-buttons { justify-content: flex-start; }
	.cw-tall img { aspect-ratio: 4/3; }
	.cw-trust { display: grid !important; grid-template-columns: 1fr 1fr; }
	.cw-prices { display: grid !important; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.cw-trust, .cw-prices { grid-template-columns: 1fr; }
	.wp-block-buttons > .wp-block-button { width: 100%; }
	.wp-block-buttons .wp-block-button__link { width: 100%; box-sizing: border-box; }
}
