/*
Theme Name: Justwood Floors
Theme URI: https://justwoodfloors.net/
Description: Child theme of Hello Elementor for Justwood Floors. Header, footer, mobile call bar and design tokens live here. Built by Wellbuilt Digital, October 2026.
Author: Wellbuilt Digital
Author URI: https://wellbuiltdigital.com/
Template: hello-elementor
Version: 1.0.11
Requires PHP: 7.4
Text Domain: justwood
*/

/* ==========================================================================
   1. Design tokens (single source of truth for colors and fonts)
   ========================================================================== */
:root {
	--jw-walnut: #2A1F18;
	--jw-text: #3A322C;
	--jw-muted: #6B625A;
	--jw-sand: #F4EFE8;
	--jw-line: #E6DFD6;
	--jw-accent: #A3322B;
	--jw-accent-dark: #86271F;
	--jw-gold: #D99A00;
	--jw-white: #FFFFFF;
	--jw-on-dark: #D9CFC3;
	--jw-font-display: "Archivo", Arial, sans-serif;
	--jw-font-body: "Inter", Arial, sans-serif;
	--jw-font-wordmark: "Libre Caslon Text", Georgia, serif;
	--jw-radius: 10px;
	--jw-radius-btn: 6px;
	--jw-wrap: 1296px; /* 1248px content plus 24px side padding, matches the Elementor sections */
}

/* Map Elementor global colors and fonts to the tokens, so every widget that uses
   the site globals picks up the design without per-widget styling. */
body[class*="elementor-kit-"] {
	--e-global-color-primary: var(--jw-walnut);
	--e-global-color-secondary: var(--jw-sand);
	--e-global-color-text: var(--jw-text);
	--e-global-color-accent: var(--jw-accent);
	--e-global-typography-primary-font-family: "Archivo";
	--e-global-typography-primary-font-weight: 700;
	--e-global-typography-secondary-font-family: "Archivo";
	--e-global-typography-secondary-font-weight: 600;
	--e-global-typography-text-font-family: "Inter";
	--e-global-typography-text-font-weight: 400;
	--e-global-typography-accent-font-family: "Inter";
	--e-global-typography-accent-font-weight: 600;
}

/* ==========================================================================
   2. Base. The "body[class*=elementor-kit-]" selectors outrank the legacy
   Elementor Site Settings (Arial, 1px body line height, grey headings, 1140px
   width) that the old design left behind, so this file stays the one source.
   ========================================================================== */
body,
body[class*="elementor-kit-"] {
	background: var(--jw-white);
	color: var(--jw-text);
	font-family: var(--jw-font-body);
	font-size: 17px;
	line-height: 1.6;
}
body[class*="elementor-kit-"] .e-con { --container-max-width: var(--jw-wrap); }
body[class*="elementor-kit-"] :is(h1, h2, h3, h4) { font-family: var(--jw-font-display); color: var(--jw-walnut); }
a { color: var(--jw-walnut); }
a:hover, a:focus { color: #000000; }
:focus-visible { outline: 3px solid #1A5FB4; outline-offset: 2px; }
.elementor-widget-text-editor a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.widget-image-caption { font-style: normal; }

.jw-wrap { max-width: var(--jw-wrap); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.screen-reader-text:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000; background: var(--jw-white); padding: 12px 16px; }

/* Hide the old per-page call bar widget if any old page is still shown with this theme. */
#jwf-mbar { display: none !important; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.jw-topbar { background: var(--jw-walnut); color: var(--jw-sand); font-size: 14px; }
.jw-topbar .jw-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 8px; padding-bottom: 8px; }
.jw-topbar a { color: var(--jw-white); font-weight: 600; text-decoration: none; }
.jw-topbar a:hover { text-decoration: underline; }

.jw-header { background: var(--jw-white); border-bottom: 1px solid var(--jw-line); position: relative; z-index: 50; }
.jw-header .jw-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.jw-logo { font-family: var(--jw-font-wordmark); font-size: 26px; letter-spacing: 2px; color: var(--jw-walnut); text-decoration: none; white-space: nowrap; line-height: 1.2; }
.jw-logo:hover { color: var(--jw-walnut); }

.jw-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.jw-nav__list a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--jw-walnut); padding: 6px 0; display: inline-block; }
.jw-nav__list a:hover, .jw-nav__list .current-menu-item > a:not([href*="#"]) { text-decoration: underline; text-underline-offset: 4px; }

.jw-header__actions { display: flex; align-items: center; gap: 16px; }
.jw-header__phone { font-weight: 600; text-decoration: none; white-space: nowrap; }

.jw-btn, .elementor-button { border-radius: var(--jw-radius-btn); font-family: var(--jw-font-body); font-weight: 600; }
.jw-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; background: var(--jw-accent); color: var(--jw-white); text-decoration: none; font-size: 15px; box-sizing: border-box; border: 1px solid var(--jw-accent); }
.jw-btn:hover, .jw-btn:focus { background: var(--jw-accent-dark); border-color: var(--jw-accent-dark); color: var(--jw-white); }

.jw-icon-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--jw-walnut); border-radius: var(--jw-radius-btn); background: var(--jw-white); color: var(--jw-walnut); align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.jw-icon-btn svg { width: 20px; height: 20px; }

@media (max-width: 1024px) {
	.jw-topbar__area { display: none; }
	.jw-logo { font-size: 20px; letter-spacing: 1.5px; }
	.jw-header__phone, .jw-header__cta { display: none; }
	.jw-icon-btn { display: inline-flex; }
	.jw-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--jw-white); border-bottom: 1px solid var(--jw-line); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08); }
	.jw-nav.is-open { display: block; }
	.jw-nav__list { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
	.jw-nav__list a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--jw-line); }
	.jw-nav__cta { display: flex; flex-direction: column; gap: 10px; padding: 0 24px 20px; }
}
@media (max-width: 767px) {
	.jw-wrap { padding-left: 20px; padding-right: 20px; }
	.jw-header .jw-wrap { gap: 12px; }
	.jw-header__actions { gap: 8px; }
	.jw-logo { font-size: clamp(15px, 4.6vw, 20px); letter-spacing: 1px; }
	.jw-nav__list { padding-left: 20px; padding-right: 20px; }
	.jw-nav__cta { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 1025px) {
	.jw-nav__cta { display: none; }
	.jw-header .jw-nav { flex: 1 1 auto; display: flex; justify-content: center; }
}

/* ==========================================================================
   4. Page sections built in Elementor (classes added in each container's Advanced tab)
   ========================================================================== */
.jw-section { padding-top: 72px; padding-bottom: 72px; }
.jw-section--tight { padding-top: 48px; padding-bottom: 48px; }
.jw-sand { background-color: var(--jw-sand); }
.jw-dark { background-color: var(--jw-walnut); color: var(--jw-on-dark); }
.jw-dark .elementor-heading-title { color: var(--jw-white) !important; }
.jw-dark .elementor-widget-text-editor, .jw-dark .elementor-image-caption, .jw-dark figcaption { color: var(--jw-on-dark); }
.jw-dark a { color: var(--jw-white); }

.elementor-widget-heading h1.elementor-heading-title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; font-weight: 800; letter-spacing: -0.5px; }
.elementor-widget-heading h2.elementor-heading-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.elementor-widget-heading h3.elementor-heading-title { font-size: clamp(19px, 2vw, 22px); line-height: 1.25; }
.jw-lead { font-size: 19px; color: #4A4038; }
.jw-small { font-size: 14px; color: var(--jw-muted); }

.jw-rating a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--jw-walnut); text-decoration: none; }
.jw-rating .jw-stars { color: var(--jw-gold); letter-spacing: 2px; }

.jw-trust p { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; font-size: 14px; font-weight: 500; color: #4A4038; }

.jw-card { background: var(--jw-white); border: 1px solid var(--jw-line); border-radius: var(--jw-radius); padding: 28px; }
.jw-sand .jw-card { border-color: transparent; }
.jw-card--sand { background: var(--jw-sand); border-color: transparent; }

.jw-photo img { border-radius: var(--jw-radius); width: 100%; object-fit: cover; }
.jw-photo--hero img { height: 560px; }
.jw-photo--tile img { height: 300px; border-radius: 8px; }
.jw-photo figcaption, .jw-photo .widget-image-caption { font-size: 13px; margin-top: 10px; color: var(--jw-muted); text-align: left; }
.jw-dark .jw-photo .widget-image-caption { color: var(--jw-on-dark); }

.elementor-button.elementor-size-md, .elementor-button.elementor-size-lg { padding: 16px 26px; font-size: 17px; }
.jw-btn-outline .elementor-button { background-color: var(--jw-white) !important; color: var(--jw-walnut) !important; border: 1px solid var(--jw-walnut); }
.jw-btn-outline .elementor-button:hover { background-color: var(--jw-sand) !important; }
.elementor-button:hover { filter: brightness(0.9); }

.jw-steps .jw-step-num { font-family: var(--jw-font-display); font-weight: 800; font-size: 40px; color: var(--jw-accent); line-height: 1; margin: 0 0 8px; }

.jw-towns ul { columns: 2; column-gap: 20px; margin: 0; padding: 0; list-style: none; }
.jw-towns li { padding: 3px 0; break-inside: avoid; }

/* Contact Form 7 inside the estimate card */
.jw-form .wpcf7 { margin: 0; }
.jw-form .wpcf7-form p { margin: 0 0 14px; }
.jw-form .wpcf7-form label { display: block; font-size: 14px; font-weight: 600; color: var(--jw-walnut); }
.jw-form .wpcf7-form input[type="text"], .jw-form .wpcf7-form input[type="tel"], .jw-form .wpcf7-form input[type="email"], .jw-form .wpcf7-form select, .jw-form .wpcf7-form textarea { width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 12px; border: 1px solid #B8ADA0; border-radius: var(--jw-radius-btn); background: var(--jw-white); font: inherit; font-weight: 400; box-sizing: border-box; }
.jw-form .wpcf7-form textarea { min-height: 96px; }
.jw-form .rc_head { display: none; }
.jw-form .wpcf7-form > p:first-of-type { font-size: 15px; color: #4A4038; }
.jw-form .wpcf7-submit { width: 100%; min-height: 52px; border: 0; border-radius: var(--jw-radius-btn); background: var(--jw-accent); color: var(--jw-white); font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; }
.jw-form .wpcf7-submit:hover { background: var(--jw-accent-dark); }
.jw-form .wpcf7-form p:has(.wpcf7-submit) { position: relative; margin-bottom: 0; }
.jw-form .wpcf7-spinner { position: absolute; right: 16px; top: 14px; margin: 0; }

/* Google review slider restyle */
.jw-reviews .wprevpro_t1_DIV_2 { background: var(--jw-sand) !important; border: 0 !important; border-radius: var(--jw-radius) !important; box-shadow: none !important; }
.jw-reviews .wprevpro_t1_DIV_2::after { display: none !important; }
.jw-reviews .wprevpro_t1_P_3 { font-style: normal !important; color: var(--jw-walnut) !important; font-size: 16px !important; }

/* Accordion / toggle FAQ */
.elementor-toggle .elementor-tab-title { font-family: var(--jw-font-display); font-weight: 600; color: var(--jw-walnut); border-color: var(--jw-line) !important; }
.elementor-toggle .elementor-tab-content { border-color: var(--jw-line) !important; }

/* ==========================================================================
   5. Footer
   ========================================================================== */
.jw-footer { background: var(--jw-walnut); color: var(--jw-on-dark); font-size: 15px; }
.jw-footer a { color: var(--jw-on-dark); }
.jw-footer a:hover { color: var(--jw-white); }
.jw-footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.jw-footer__col { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.jw-footer__title { color: var(--jw-white); font-weight: 600; margin: 0 0 4px; font-size: 15px; font-family: var(--jw-font-body); }
.jw-footer__wordmark { font-family: var(--jw-font-wordmark); font-size: 22px; letter-spacing: 2px; color: var(--jw-white); }
.jw-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jw-footer__phone { color: var(--jw-white) !important; font-weight: 600; }
.jw-footer__rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.jw-footer__lic { font-size: 13px; line-height: 1.5; color: #B8ADA0; max-width: 300px; }
.jw-footer__rating .jw-stars { color: var(--jw-gold); letter-spacing: 2px; font-size: 17px; }
.jw-footer__bottom { border-top: 1px solid #45362B; }
.jw-footer__bottom .jw-wrap { padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: #B8ADA0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ==========================================================================
   6. Mobile call bar (markup printed in functions.php)
   ========================================================================== */
.jw-callbar { display: none; }
@media (max-width: 767px) {
	.jw-callbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12); transform: translateY(110%); transition: transform 0.25s ease; }
	.jw-callbar.is-on { transform: translateY(0); }
	.jw-callbar a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--jw-radius-btn); font-weight: 700; font-size: 15px; text-decoration: none; }
	.jw-callbar__call { background: var(--jw-accent); color: var(--jw-white) !important; }
	.jw-callbar__est { background: var(--jw-white); color: var(--jw-walnut) !important; border: 1px solid #555555; }
	body.jw-callbar-pad { padding-bottom: 64px; }
	body.jw-callbar-pad .grecaptcha-badge { bottom: 72px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.jw-callbar { transition: none; }
}

/* ==========================================================================
   7. 404 page (404.php)
   ========================================================================== */
.jw-404 { padding: 64px 0 80px; }
.jw-404 h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 12px; }
.jw-404__code { margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--jw-accent); }
.jw-404 .jw-lead { margin: 0 0 32px; max-width: 640px; }
.jw-404__links { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.jw-404__links .jw-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; text-decoration: none; color: var(--jw-text); box-sizing: border-box; transition: border-color 0.15s ease; }
.jw-404__links .jw-card:hover, .jw-404__links .jw-card:focus { border-color: var(--jw-walnut); }
.jw-404__links strong { font-family: var(--jw-font-display); font-size: 18px; color: var(--jw-walnut); }
.jw-404__links span { font-size: 15px; color: var(--jw-muted); }
.jw-404__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 17px; }
.jw-404__cta a:not(.jw-btn) { font-weight: 600; }
.jw-404__home { margin: 24px 0 0; font-size: 15px; }
