/*
Theme Name: Route 262 Outdoors
Theme URI: https://route262outdoors.com
Author: Route 262 Outdoors
Description: Cabin-and-wilderness theme for Route 262 Outdoors in Dillsboro, Indiana. Forest green, campfire orange, pine tree lines and buffalo plaid. Includes Gun Listings that link to GunBroker.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: route262
*/

:root {
	--r262-forest: #1E2B22;
	--r262-pine: #2C3D30;
	--r262-night: #121A15;
	--r262-birch: #EFE8D8;
	--r262-paper: #FAF6EC;
	--r262-plank: #E8DCC2;
	--r262-campfire: #A4471F;
	--r262-lantern: #D49A4A;
	--r262-lantern-light: #E3B66B;
	--r262-moss: #4F5A4C;
	--r262-line: #D5CBB4;
	--r262-cream: #EDE4CF;
	--r262-sage: #B9C0A9;
	--r262-ph: #DDD3BC;
}

* { box-sizing: border-box; }
body { margin: 0; }
:where(a, button, input):focus-visible { outline: 3px solid var(--r262-lantern); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* Wide sections run full width; content inside is capped at 1240px. */
.r262-section > .r262-inner,
.r262-inner { max-width: 1240px; margin-left: auto !important; margin-right: auto !important; width: 100%; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks { padding-left: 0 !important; padding-right: 0 !important; }
.r262-section { padding-left: 24px !important; padding-right: 24px !important; }

/* Eyebrow labels */
.r262-eyebrow { font-size: 13px !important; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--r262-campfire); margin: 0 0 6px !important; }
.r262-dark .r262-eyebrow { color: var(--r262-lantern-light); }

/* Carved-sign headings */
.r262-section h2.wp-block-heading { text-shadow: 1px 1px 0 rgba(255,255,255,0.7); margin-top: 0; }
.r262-dark h1, .r262-dark h2 { text-shadow: 0 3px 0 rgba(0,0,0,0.45) !important; color: var(--r262-birch); }
.r262-newsletter h2 { text-shadow: 0 2px 0 rgba(0,0,0,0.35) !important; }
.r262-muted { color: var(--r262-moss); }

/* ---------- Top bar & header ---------- */
.r262-topbar { background: var(--r262-forest); color: var(--r262-cream); font-size: 14px; padding: 8px 24px !important; }
.r262-topbar p { margin: 0; }
.r262-topbar a { color: var(--r262-cream); text-decoration: none; font-weight: 600; }
.r262-header { background: var(--r262-paper); border-bottom: 1px solid var(--r262-line); padding: 14px 24px !important; }
.r262-brand { text-decoration: none; color: var(--r262-forest); display: flex; flex-direction: column; line-height: 1.05; }
.r262-brand__name { font-family: 'Alfa Slab One', Georgia, serif; font-size: 26px; color: var(--r262-forest); margin: 0 !important; }
.r262-brand__name a { color: inherit; text-decoration: none; }
.r262-brand__tag { font-size: 12px !important; letter-spacing: 0.2em; text-transform: uppercase; color: var(--r262-moss); margin: 4px 0 0 !important; }
.r262-header .wp-block-navigation { font-weight: 600; font-size: 16px; gap: 6px 26px; }
.r262-header .wp-block-navigation a { color: var(--r262-forest); text-decoration: none; padding: 10px 0; }
.r262-header .wp-block-navigation a:hover { color: var(--r262-campfire); }
.r262-header .wp-block-button__link { padding: 11px 18px; font-size: 16px; }

/* Buffalo plaid stripe */
.r262-plaid { height: 12px; background-color: #9B2D20; background-image: linear-gradient(90deg, rgba(18,26,21,0.6) 50%, transparent 50%), linear-gradient(rgba(18,26,21,0.6) 50%, transparent 50%); background-size: 24px 24px; margin: 0 !important; }

/* ---------- Hero ---------- */
.r262-hero { background: var(--r262-forest); color: var(--r262-birch); padding-top: 72px !important; padding-bottom: 0 !important; }
.r262-hero h1 { margin: 0; line-height: 1.06; }
.r262-hero .r262-lead { font-size: 20px; color: var(--r262-line); max-width: 560px; }
.r262-hero .wp-block-columns { gap: 48px; align-items: center; margin-bottom: 40px; }
.r262-hero__photo img { border-radius: 10px; width: 100%; height: 440px; object-fit: cover; border: 1px solid #46594A; display: block; }
.r262-btn-lantern .wp-block-button__link { background: var(--r262-lantern) !important; color: var(--r262-forest) !important; }
.r262-btn-ghost .wp-block-button__link { background: transparent !important; border: 2px solid var(--r262-line) !important; color: var(--r262-birch) !important; }
.r262-trust { font-size: 15px; color: var(--r262-line); gap: 10px 28px !important; }
.r262-trust p { margin: 0; }
.r262-trust strong { color: var(--r262-birch); }

/* Tree lines */
.r262-treeline { display: block; width: 100%; height: 110px; margin: 0 !important; }
.r262-treeline--footer { margin-top: 24px !important; }

/* ---------- Generic sections ---------- */
.r262-pad { padding-top: 88px !important; padding-bottom: 88px !important; }
.r262-pad-sm { padding-top: 56px !important; padding-bottom: 56px !important; }
.r262-head { margin-bottom: 36px !important; max-width: 680px; }
.r262-head p { margin-top: 8px; }

/* Service cards */
.r262-cards { gap: 20px !important; }
.r262-card { background: var(--r262-paper); border: 1px solid var(--r262-line); border-radius: 10px; padding: 26px !important; }
.r262-card h3 { margin: 4px 0 8px; }
.r262-card p { margin: 0; color: var(--r262-moss); }
.r262-num { font-family: 'Zilla Slab', Georgia, serif; color: var(--r262-campfire); font-weight: 700; font-size: 15px !important; margin: 0 !important; }

/* Photo strip */
.r262-photos { gap: 12px !important; }
.r262-photos figure { margin: 0; }
.r262-photos img { width: 100%; height: 240px; object-fit: cover; border-radius: 10px; display: block; }
.r262-photos figcaption { font-size: 14px; color: var(--r262-moss); margin-top: 6px; text-align: left; }

/* ---------- Listings ---------- */
.r262-listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.r262-listing { background: var(--r262-paper); border: 1px solid var(--r262-line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.r262-listing__img { position: relative; height: 200px; background: var(--r262-ph); display: flex; align-items: center; justify-content: center; }
.r262-listing__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r262-listing__noimg { color: #5A5F4E; font-size: 14px; }
.r262-badge { position: absolute; top: 12px; left: 12px; background: var(--r262-forest); color: var(--r262-birch); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.r262-listing__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.r262-listing__meta { font-size: 13px; color: var(--r262-moss); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.r262-listing__title { margin: 0 !important; font-family: 'Zilla Slab', Georgia, serif; font-size: 22px; line-height: 1.2; }
.r262-listing__price { font-size: 22px; font-weight: 700; margin-top: 4px; }
.r262-listing__format { font-size: 14px; color: var(--r262-moss); }
.r262-listing__actions { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.r262-btn { background: var(--r262-campfire); color: #fff !important; text-decoration: none; font-weight: 700; padding: 11px 16px; border-radius: 6px; font-size: 15px; }
.r262-btn:hover { background: #8A3A18; }
.r262-listing__call { font-weight: 600; font-size: 15px; text-decoration: none; }
.r262-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.r262-chip { min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border: 2px solid #C2B89E; background: var(--r262-paper); color: var(--r262-forest); }
.r262-chip[aria-pressed="true"] { background: var(--r262-forest); border-color: var(--r262-forest); color: var(--r262-birch); font-weight: 700; }
.r262-empty { background: var(--r262-paper); border: 1px dashed #C2B89E; border-radius: 10px; padding: 28px; color: var(--r262-moss); }

/* ---------- Newsletter ---------- */
.r262-newsletter { background: var(--r262-campfire); color: #fff; }
.r262-newsletter p { color: #FBE6D6; }
.r262-newsletter .wp-block-columns { gap: 32px 56px; align-items: center; }
.r262-newsletter form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.r262-newsletter form p { margin: 0 !important; }
.r262-newsletter #subscribe-text, .r262-newsletter .jetpack-subscribe-text { display: none; }
.r262-newsletter input[type="email"] { flex: 1 1 240px; height: 52px; padding: 0 16px !important; border: 0 !important; border-radius: 6px !important; font: inherit !important; font-size: 17px !important; color: var(--r262-forest); width: 100% !important; }
.r262-newsletter #subscribe-email, .r262-newsletter p:has(input[type="email"]) { flex: 1 1 240px; }
.r262-newsletter button, .r262-newsletter input[type="submit"] { height: 52px; padding: 0 26px !important; border: 0 !important; border-radius: 6px !important; background: var(--r262-forest) !important; color: var(--r262-birch) !important; font: inherit !important; font-weight: 700 !important; font-size: 17px !important; cursor: pointer; }
.r262-newsletter .r262-fine { font-size: 14px; margin-top: 10px; }

/* ---------- Buying guide ---------- */
.r262-steps { gap: 0 !important; border: 1px solid var(--r262-line); border-radius: 10px; overflow: hidden; background: var(--r262-paper); }
.r262-step { padding: 28px !important; border-right: 1px solid var(--r262-line); }
.r262-step:last-child { border-right: 0; }
.r262-step h3 { margin: 10px 0 6px; font-size: 22px; }
.r262-step p { margin: 0; color: var(--r262-moss); }
.r262-step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--r262-forest); color: var(--r262-birch) !important; display: flex !important; align-items: center; justify-content: center; font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: 20px !important; margin: 0 !important; }
.r262-notes { gap: 20px !important; margin-top: 20px !important; }
.r262-note { background: #E3DCC8; border-radius: 10px; padding: 24px 26px !important; }
.r262-note h3 { margin: 0 0 6px; font-size: 21px; }
.r262-note p { margin: 0; color: #3F4A3D; }

/* ---------- Crew / story (cabin plank wall) ---------- */
.r262-crew { background-color: var(--r262-plank); background-image: repeating-linear-gradient(180deg, transparent 0 71px, rgba(74,52,30,0.16) 71px 73px); border-top: 1px solid var(--r262-line); border-bottom: 1px solid var(--r262-line); }
.r262-story { gap: 40px 64px !important; margin-bottom: 44px !important; }
.r262-story p { color: #3F4A3D; font-size: 18px; }
.r262-people { gap: 20px !important; }
.r262-person figure { margin: 0 0 10px; }
.r262-person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; display: block; }
.r262-person h3 { margin: 0; font-size: 21px; }
.r262-role { font-size: 14px !important; color: var(--r262-campfire); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 2px 0 0 !important; }
.r262-person p:not(.r262-role) { font-size: 15px; color: var(--r262-moss); margin: 4px 0 0; }

/* ---------- Visit ---------- */
.r262-visit { gap: 40px !important; }
.r262-hours table { border-collapse: collapse; width: 100%; max-width: 420px; font-size: 17px; }
.r262-hours td { border: 0; border-top: 1px solid var(--r262-line); padding: 10px 0; }
.r262-hours tr:last-child td { border-bottom: 1px solid var(--r262-line); }
.r262-hours td:last-child { text-align: right; font-weight: 600; }
.r262-hours figcaption { text-align: left; font-weight: 700; color: var(--r262-forest); font-size: 17px; }
.r262-map iframe { width: 100%; min-height: 420px; border: 0; border-radius: 10px; display: block; }
.r262-btn-dark .wp-block-button__link { background: var(--r262-forest) !important; color: var(--r262-birch) !important; }
.r262-btn-outline .wp-block-button__link { background: transparent !important; border: 2px solid var(--r262-forest) !important; color: var(--r262-forest) !important; padding: 11px 20px !important; }

/* ---------- Footer ---------- */
.r262-footer { background: var(--r262-forest); color: var(--r262-line); font-size: 15px; }
.r262-footer a { color: var(--r262-line); text-decoration: none; }
.r262-footer a:hover { color: var(--r262-lantern-light); }
.r262-footer strong { color: var(--r262-birch); }
.r262-footer p { margin: 0 0 8px; }
.r262-footer__logo img { height: 120px; width: auto; filter: invert(1) sepia(0.35) brightness(0.95); mix-blend-mode: screen; }
.r262-footer__legal { border-top: 1px solid var(--r262-pine); font-size: 13px; color: var(--r262-sage); padding-top: 18px !important; margin-top: 28px !important; }
.r262-footer__legal p { margin: 0; }

/* ---------- Listings page head ---------- */
.r262-howto { background: var(--r262-pine); border-radius: 10px; padding: 20px 22px !important; font-size: 15px; color: var(--r262-line); }
.r262-howto p { margin: 0 0 6px; }
.r262-cta { background: #E3DCC8; border-radius: 10px; padding: 28px !important; margin-top: 40px !important; }

/* ---------- Plain pages ---------- */
.r262-page { padding-top: 56px; padding-bottom: 72px; }

/* ---------- Phone ---------- */
@media (max-width: 781px) {
	.r262-hero { padding-top: 48px !important; }
	.r262-hero__photo img { height: 280px; }
	.r262-step { border-right: 0; border-bottom: 1px solid var(--r262-line); }
	.r262-step:last-child { border-bottom: 0; }
	.r262-pad { padding-top: 64px !important; padding-bottom: 64px !important; }
	.r262-photos img { height: 200px; }
}

/* In-store pricing note and consignment section */
.r262-fineprint { font-size: 14px; color: var(--r262-moss); margin-top: 18px !important; }
.r262-consign { margin-top: 64px !important; padding-top: 48px; border-top: 1px solid var(--r262-line); }
.r262-consign h2 { margin: 0 0 8px; }
.r262-consign .r262-muted { margin: 0 0 28px; max-width: 680px; }
.r262-badge--consign { background: var(--r262-lantern); color: var(--r262-forest); }

/* Listing pages */
.r262-listing__title a { color: inherit; text-decoration: none; }
.r262-listing__title a:hover { color: var(--r262-campfire); }
.r262-listing__img a { display: block; width: 100%; height: 100%; }
.r262-btn--alt { background: var(--r262-forest); }
.r262-btn--alt:hover { background: var(--r262-pine); }
.r262-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: start; margin: 8px 0 32px; }
.r262-detail__img { position: relative; }
.r262-detail__img img { width: 100%; border-radius: 10px; display: block; border: 1px solid var(--r262-line); }
.r262-detail__info { display: flex; flex-direction: column; gap: 8px; background: var(--r262-paper); border: 1px solid var(--r262-line); border-radius: 10px; padding: 24px; }
.r262-detail__price { font-size: 34px; font-weight: 700; line-height: 1.1; }
.r262-detail__info .r262-listing__actions { margin-top: 8px; }
.r262-detail__desc { margin-top: 8px; }
.r262-detail__desc h2 { font-size: 28px; }
.single-r262_listing .wp-block-post-title { font-family: 'Alfa Slab One', Georgia, serif; font-weight: 400; }
