/* ===== Fonts (self-hosted Archivo variable) ===== */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/archivo-var-3.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/archivo-var-2.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ===== Tokens (mirrored: builder magic-mode skips this sheet; the :root variable style covers it there) ===== */
:root {
--je-cream: #fbfdf9;
--je-cream-2: #e8f5e9;
--je-ink: #191919;
--je-ink-2: #2b2b2b;
--je-ink-3: #333333;
--je-amber: #66bb6a;
--je-amber-hover: #4caf50;
--je-amber-deep: #388e3c;
--je-amber-text: #1b5e20;
--je-amber-soft: #a5d6a7;
--je-text-muted: #4b584a;
--je-text-soft: #6e6e6e;
--je-text-faint: #767676;
--je-dark-text: #ffffff;
--je-dark-muted: #aaaaaa;
--je-dark-soft: #bbbbbb;
--je-dark-faint: #888888;
--je-dark-line: #333333;
--je-line: #dfe9dd;
--je-line-2: #d9e8d8;
--je-line-3: #e3efe1;
--je-line-input: #d5e3d3;
--je-line-dash: #c1d7bf;
--je-font: 'Archivo', system-ui, -apple-system, sans-serif;
--je-text-display: clamp(2.375rem, 5.5vw, 3.375rem);
--je-lh-display: 1.07;
--je-text-h1: clamp(2rem, 4.5vw, 2.75rem);
--je-lh-h1: 1.1;
--je-text-h2: clamp(1.75rem, 3.2vw, 2.25rem);
--je-lh-h2: 1.15;
--je-text-h2-sm: clamp(1.625rem, 2.8vw, 2rem);
--je-text-h3: 1.5rem;
--je-text-h4: 1.25rem;
--je-text-lede: clamp(1rem, 1.4vw, 1.094rem);
--je-text-body: 0.969rem;
--je-text-md: 0.938rem;
--je-text-sm: 0.875rem;
--je-text-xs: 0.844rem;
--je-text-2xs: 0.813rem;
--je-lh-body: 1.6;
--je-track-tight: -0.025em;
--je-track-snug: -0.02em;
--je-track-s: -0.01em;
--je-space-1: 4px;
--je-space-2: 8px;
--je-space-3: 12px;
--je-space-4: 16px;
--je-space-5: 20px;
--je-space-6: 24px;
--je-space-7: 32px;
--je-space-8: 40px;
--je-space-9: 48px;
--je-space-10: 64px;
--je-section: clamp(3rem, 7vw, 4.5rem);
--je-section-sm: clamp(1.25rem, 2.5vw, 1.5rem);
--je-section-lg: clamp(4rem, 9vw, 6rem);
--je-gap: 20px;
--je-gap-lg: clamp(2rem, 5vw, 4rem);
--je-container: 1168px;
--je-gutter: clamp(1.25rem, 4.4vw, 3.5rem);
--je-radius-sm: 9px;
--je-radius: 10px;
--je-radius-md: 12px;
--je-radius-lg: 14px;
--je-radius-pill: 99px;
--je-hero-overlay: linear-gradient(90deg, rgba(11,17,11,0.8) 0%, rgba(11,17,11,0.5) 48%, rgba(11,17,11,0.05) 100%);
--je-shadow: 0 2px 8px rgba(0,0,0,0.07);
--je-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
--je-dur: 0.18s;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--je-cream); color: var(--je-ink); font-family: var(--je-font); font-size: var(--je-text-body); line-height: var(--je-lh-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
a { color: var(--je-amber-text); text-decoration: none; transition: color var(--je-dur) var(--je-ease); }
a:hover { color: var(--je-ink); }
button, input, textarea, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--je-amber-deep); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }

/* je-actionbar-clearance: keep page content clear of the fixed mobile action bar */
@media (max-width: 767px) { body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); } }


/* template-part wrappers: layout-transparent so the sticky header's containing block is the body */
header.wp-block-template-part, footer.wp-block-template-part { display: contents; }
/* Add your custom media definitions here using @custom-media rules. Example: @custom-media --small-screen (width < 600px);*/
/* ===== Motion (Impeccable animate pass): one authored hero entrance — the squeegee pass — plus feedback and state transitions. Reduced-motion is neutralized by the global override in Main; scroll-driven reveals additionally gate on no-preference. ===== */

@keyframes je-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes je-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes je-settle { from { transform: scale(1.045); } to { transform: none; } }

/* Focal: hero enters like a squeegee stroke — the photo settles while the headline wipes on left-to-right */
.je-hero__img { animation: je-settle 1.4s var(--je-ease) both; }
.je-hero__badge { animation: je-rise 0.5s var(--je-ease) 0.08s both; }
.je-hero__title { animation: je-wipe 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.je-hero__lede { animation: je-rise 0.5s var(--je-ease) 0.45s both; }
.je-hero__content .je-actions { animation: je-rise 0.5s var(--je-ease) 0.58s both; }

/* Feedback: acknowledge pointer and press */
.je-chip { transition: background var(--je-dur) var(--je-ease), color var(--je-dur) var(--je-ease); }
.je-btn:active { transform: translateY(1px); }
.je-card__img { transition: transform 0.45s var(--je-ease); }
.je-card:hover .je-card__img { transform: scale(1.04); }

/* Quote form: visible focus + smooth field states */
.je-gform .gfield .ginput_container input, .je-gform .gfield .ginput_container textarea { transition: border-color var(--je-dur) var(--je-ease), box-shadow var(--je-dur) var(--je-ease); }
.je-gform .gfield .ginput_container input:focus, .je-gform .gfield .ginput_container textarea:focus { border-color: var(--je-amber-deep) !important; box-shadow: 0 0 0 3px rgba(56,142,60,0.16) !important; outline: none; }

/* FAQ answers glide open where the platform supports it (elsewhere: instant, unchanged) */
@supports (interpolate-size: allow-keywords) {
  .je-faq__item { interpolate-size: allow-keywords; }
  .je-faq__item::details-content { block-size: 0; overflow-y: clip; opacity: 0; transition: content-visibility 0.3s allow-discrete, opacity 0.3s var(--je-ease), block-size 0.3s var(--je-ease); }
  .je-faq__item[open]::details-content { block-size: auto; opacity: 1; }
}

/* Cards and reviews surface as they enter the viewport — CSS scroll-driven only, desktop, motion-safe */
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  @supports (animation-timeline: view()) {
    .je-cards .je-card, .je-reviews .je-review { animation: je-rise 0.6s var(--je-ease) both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}

/* Glass glint: a light pass across clean surfaces on hover - signature micro-moment */
.je-card, .je-btn--amber, .je-cta-card__btn { position: relative; overflow: hidden; }
.je-card::after, .je-btn--amber::after, .je-cta-card__btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.35) 50%, transparent 65%); transform: translateX(-130%); pointer-events: none; }
.je-card:hover::after, .je-btn--amber:hover::after, .je-cta-card__btn:hover::after { transform: translateX(130%); transition: transform 0.7s var(--je-ease); }

/* The squeegee leaves its mark: the hero streak draws in after the title wipe */
@keyframes je-streak-in { from { transform: scaleX(0) rotate(-1.4deg); } to { transform: scaleX(1) rotate(-1.4deg); } }
.je-streak::after { animation: je-streak-in 0.5s var(--je-ease) 0.9s both; }
