/* ============================================================
   JACKSON ROOFING GTA INC. — Custom Design System
   Premium Heritage Construction Website
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS / CSS VARIABLES
   ============================================================ */
:root {
  /* Brand Colors — Light Mode */
  --jr-copper:      #B8731A;
  --jr-copper-hover:#A0611A;
  --jr-copper-light:#D4901F;
  --jr-copper-pale: #F7EDD8;

  --jr-dark:        #0F1118;
  --jr-charcoal:    #1A1E2A;
  --jr-slate:       #2C3142;
  --jr-slate-mid:   #3A3F52;

  --jr-cream:       #F5F2EB;
  --jr-off-white:   #FAFAF8;
  --jr-white:       #FFFFFF;

  --jr-text:        #2C3142;
  --jr-text-2:      #4A5060;
  --jr-text-3:      #6B7280;
  --jr-text-4:      #9BA3B2;

  --jr-border:      #E8E4DC;
  --jr-border-2:    #D0CBBE;

  /* Semantic tokens */
  --jr-bg:          var(--jr-off-white);
  --jr-bg-alt:      var(--jr-cream);
  --jr-bg-dark:     var(--jr-charcoal);
  --jr-surface:     var(--jr-white);
  --jr-surface-2:   var(--jr-cream);
  --jr-text-primary: var(--jr-text);
  --jr-text-secondary: var(--jr-text-2);
  --jr-text-muted:  var(--jr-text-3);
  --jr-accent:      var(--jr-copper);
  --jr-accent-hover: var(--jr-copper-hover);
  --jr-heading-color: var(--jr-charcoal);

  /* Header */
  --jr-header-top-bg:   var(--jr-charcoal);
  --jr-header-top-text: rgba(255,255,255,0.75);
  --jr-header-bg:       var(--jr-white);
  --jr-header-shadow:   0 2px 20px rgba(0,0,0,0.08);
  --jr-header-border:   var(--jr-border);

  /* Typography */
  --jr-font-display: 'Playfair Display', Georgia, serif;
  --jr-font-heading: 'Jost', system-ui, sans-serif;
  --jr-font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --jr-section-py: 96px;
  --jr-section-py-sm: 64px;
  --jr-container-width: 1280px;
  --jr-container-pad: 24px;

  /* Radius */
  --jr-radius-sm: 4px;
  --jr-radius:    8px;
  --jr-radius-lg: 16px;
  --jr-radius-xl: 24px;

  /* Transitions */
  --jr-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --jr-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --jr-bg:           #0F1118;
  --jr-bg-alt:       #1A1E2A;
  --jr-bg-dark:      #0A0C12;
  --jr-surface:      #1A1E2A;
  --jr-surface-2:    #242836;
  --jr-text-primary: #E8E4DC;
  --jr-text-secondary:#C4C0B8;
  --jr-text-muted:   #8A8D9A;
  --jr-heading-color: #F0EDE5;
  --jr-border:       #2C3142;
  --jr-border-2:     #3A3F52;
  --jr-accent:       var(--jr-copper-light);
  --jr-accent-hover: var(--jr-copper);
  --jr-copper-pale:  #2A2010;

  --jr-header-top-bg:   #0A0C12;
  --jr-header-bg:       #141720;
  --jr-header-shadow:   0 2px 20px rgba(0,0,0,0.4);
  --jr-header-border:   #2C3142;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.jr-body {
  font-family: var(--jr-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--jr-text-primary);
  background-color: var(--jr-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Skip link */
.jr-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  background: var(--jr-copper);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--jr-radius);
  font-family: var(--jr-font-heading);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.jr-skip-link:focus { top: 16px; }

img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }
.jr-site-wrapper { overflow-x: hidden; }
a { color: var(--jr-accent); text-decoration: none; transition: color var(--jr-transition); }
a:hover { color: var(--jr-accent-hover); }
a:focus-visible {
  outline: 2px solid var(--jr-copper);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible {
  outline: 2px solid var(--jr-copper);
  outline-offset: 3px;
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.jr-container {
  width: 100%;
  max-width: var(--jr-container-width);
  margin: 0 auto;
  padding: 0 var(--jr-container-pad);
}

.jr-section {
  padding: var(--jr-section-py) 0;
}

.jr-section-header { margin-bottom: 64px; }
.jr-section-header.jr-centered { text-align: center; }

.jr-section-label {
  display: inline-block;
  font-family: var(--jr-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jr-accent);
  margin-bottom: 16px;
}
.jr-label-light { color: rgba(255,255,255,0.7); }

.jr-section-title {
  font-family: var(--jr-font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--jr-heading-color);
  margin: 0 0 24px;
}
.jr-section-title em {
  font-style: italic;
  color: var(--jr-accent);
}
.jr-title-light { color: #fff; }
.jr-title-light em { color: var(--jr-copper-light); }

.jr-section-subtitle {
  font-size: 17px;
  color: var(--jr-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.jr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--jr-font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--jr-radius);
  cursor: pointer;
  transition: all var(--jr-transition);
  padding: 14px 28px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.jr-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--jr-transition);
}
.jr-btn:hover::after { opacity: 1; }

.jr-btn-primary {
  background: var(--jr-copper);
  color: #fff;
  border-color: var(--jr-copper);
}
.jr-btn-primary:hover {
  background: var(--jr-copper-hover);
  border-color: var(--jr-copper-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,115,26,0.35);
}

.jr-btn-outline {
  background: transparent;
  color: var(--jr-accent);
  border-color: var(--jr-accent);
}
.jr-btn-outline:hover {
  background: var(--jr-accent);
  color: #fff;
  transform: translateY(-2px);
}

.jr-btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.jr-btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
  transform: translateY(-2px);
}

.jr-btn-white {
  background: #fff;
  color: var(--jr-charcoal);
  border-color: #fff;
}
.jr-btn-white:hover {
  background: var(--jr-copper);
  color: #fff;
  border-color: var(--jr-copper);
  transform: translateY(-2px);
}

.jr-btn-lg  { padding: 18px 40px; font-size: 15px; }
.jr-btn-sm  { padding: 10px 20px; font-size: 13px; }
.jr-btn-full { width: 100%; }

/* ============================================================
   5. PRELOADER
   ============================================================ */
.jr-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--jr-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.jr-preloader.jr-preloader-done {
  opacity: 0;
  visibility: hidden;
}
.jr-preloader-inner { text-align: center; }
.jr-preloader-logo {
  margin-bottom: 32px;
}
.jr-logo-mark {
  font-family: var(--jr-font-display);
  font-size: 64px;
  font-weight: 800;
  color: var(--jr-copper);
  letter-spacing: -2px;
  display: block;
}
.jr-preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.jr-preloader-fill {
  height: 100%;
  background: var(--jr-copper);
  border-radius: 99px;
  animation: jr-preload 1.8s ease forwards;
}
@keyframes jr-preload {
  0% { width: 0; }
  100% { width: 100%; }
}
.jr-preloader-text {
  font-family: var(--jr-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ============================================================
   6. HEADER
   ============================================================ */
.jr-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.jr-header.jr-header-hidden { transform: translateY(-100%); }

/* Top bar */
.jr-header-top {
  background: var(--jr-header-top-bg);
  padding: 8px 0;
  font-size: 13px;
  transition: background 0.3s ease;
}
.jr-header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.jr-header-top-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.jr-top-phone {
  color: var(--jr-header-top-text);
  font-family: var(--jr-font-heading);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.jr-top-phone:hover { color: var(--jr-copper-light); }
.jr-top-sep { color: rgba(255,255,255,0.2); }
.jr-top-address {
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.jr-header-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.jr-hours-label {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Theme toggle */
.jr-theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  padding: 5px 12px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--jr-transition);
}
.jr-theme-toggle:hover { background: rgba(255,255,255,0.18); color: #fff; }
.jr-icon-dark { display: none; }
[data-theme="dark"] .jr-icon-light { display: none; }
[data-theme="dark"] .jr-icon-dark { display: block; }

/* Main header bar */
.jr-header-main {
  background: var(--jr-header-bg);
  border-bottom: 1px solid var(--jr-header-border);
  box-shadow: var(--jr-header-shadow);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.jr-header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

/* Logo */
.jr-logo-link {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  text-decoration: none;
}
.jr-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.jr-logo-word-jackson {
  font-family: var(--jr-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--jr-heading-color);
  letter-spacing: -0.5px;
  transition: color var(--jr-transition);
}
.jr-logo-word-roofing {
  font-family: var(--jr-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jr-accent);
  transition: color var(--jr-transition);
}
.jr-logo-est {
  font-family: var(--jr-font-heading);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--jr-text-muted);
  border-left: 1px solid var(--jr-border);
  padding-left: 10px;
  margin-left: 2px;
  line-height: 1;
  align-self: center;
}
.jr-footer-logo .jr-logo-est { border-left-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.4); }

/* Desktop nav */
.jr-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.jr-nav-link {
  font-family: var(--jr-font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--jr-text-primary);
  padding: 8px 14px;
  border-radius: var(--jr-radius);
  text-decoration: none;
  transition: all var(--jr-transition);
  position: relative;
}
.jr-nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--jr-copper);
  transform: scaleX(0);
  transition: transform var(--jr-transition);
  border-radius: 99px;
}
.jr-nav-link:hover { color: var(--jr-accent); }
.jr-nav-link:hover::after, .jr-nav-link.jr-active::after { transform: scaleX(1); }
.jr-nav-link.jr-active { color: var(--jr-accent); }

/* Header CTA area */
.jr-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Hamburger button ─────────────────────────────────────── */
.jr-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--jr-border);
  cursor: pointer;
  padding: 10px;
  border-radius: var(--jr-radius);
  transition: background var(--jr-transition), border-color var(--jr-transition);
}
.jr-mobile-toggle:hover,
.jr-mobile-toggle:focus-visible { background: var(--jr-bg-alt); }
.jr-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.jr-hamburger span {
  display: block;
  height: 2px;
  background: var(--jr-text-primary);
  border-radius: 99px;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1),
              opacity   0.25s ease,
              width     0.25s ease;
  width: 100%;
  transform-origin: center;
}
/* Hamburger → X morphs when open */
.jr-mobile-toggle--open .jr-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.jr-mobile-toggle--open .jr-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.jr-mobile-toggle--open .jr-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu — full-screen slide drawer ───────────────── */
.jr-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: stretch;
  justify-content: flex-end;
}
.jr-mobile-menu.jr-menu-open { display: flex; }

/* Backdrop */
.jr-mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.jr-mobile-menu.jr-menu-open  .jr-mobile-menu-overlay { animation: jr-overlay-in  0.28s ease forwards; }
.jr-mobile-menu.jr-menu-closing .jr-mobile-menu-overlay { animation: jr-overlay-out 0.24s ease forwards; }
@keyframes jr-overlay-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes jr-overlay-out { from { opacity: 1; } to { opacity: 0; } }

/* Drawer panel */
.jr-mobile-nav {
  position: relative;
  z-index: 1;
  width: min(400px, 92vw);
  /* Explicit height so the browser can establish a scroll boundary */
  height: 100vh;
  height: 100dvh; /* dynamic viewport height — accounts for iOS address bar */
  background: var(--jr-surface);
  display: flex;
  flex-direction: column;
  /* Overflow is on the scroll child, NOT here */
  overflow: hidden;
  box-shadow: -12px 0 48px rgba(0,0,0,0.22);
}
/* Scrollable middle region — header and footer stay fixed */
.jr-mobile-nav-scroll {
  flex: 1;
  min-height: 0; /* critical: allows flex child to shrink and scroll */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.jr-mobile-menu.jr-menu-open    .jr-mobile-nav { animation: jr-drawer-in  0.33s cubic-bezier(0.4,0,0.2,1) forwards; }
.jr-mobile-menu.jr-menu-closing .jr-mobile-nav { animation: jr-drawer-out 0.26s cubic-bezier(0.4,0,0.6,1) forwards; }
@keyframes jr-drawer-in  { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes jr-drawer-out { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* Drawer header — always visible (flex-shrink: 0, never scrolls away) */
.jr-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--jr-border);
  background: var(--jr-surface);
  flex-shrink: 0;
}
.jr-mobile-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
  text-decoration: none;
}
.jr-mobile-logo .jr-logo-word-jackson {
  font-family: var(--jr-font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--jr-text-primary);
  line-height: 1;
}
.jr-mobile-logo .jr-logo-word-roofing {
  font-family: var(--jr-font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jr-accent);
}
.jr-mobile-logo-est {
  font-family: var(--jr-font-body);
  font-size: 10px;
  font-weight: 500;
  color: var(--jr-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}
.jr-mobile-close {
  background: var(--jr-bg-alt);
  border: 1px solid var(--jr-border);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jr-text-primary);
  cursor: pointer;
  font-size: 16px;
  transition: all var(--jr-transition);
  flex-shrink: 0;
}
.jr-mobile-close:hover,
.jr-mobile-close:focus-visible { background: var(--jr-copper); color: #fff; border-color: var(--jr-copper); }

/* Nav link list */
.jr-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  flex: 1;
}
.jr-mobile-nav-list > li {
  border-bottom: 1px solid var(--jr-border);
}
.jr-mobile-nav-list > li:last-child { border-bottom: none; }
.jr-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  min-height: 58px;
  font-family: var(--jr-font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--jr-text-primary);
  text-decoration: none;
  transition: background var(--jr-transition), color var(--jr-transition), padding-left var(--jr-transition);
  position: relative;
}
/* Left icon */
.jr-mobile-nav-link > i:first-child {
  width: 22px;
  text-align: center;
  color: var(--jr-accent);
  font-size: 15px;
  flex-shrink: 0;
  transition: color var(--jr-transition);
}
/* Label */
.jr-mobile-nav-link > span { flex: 1; }
/* Chevron */
.jr-nav-arrow {
  font-size: 11px;
  color: var(--jr-text-muted);
  transition: transform var(--jr-transition), color var(--jr-transition);
  flex-shrink: 0;
}
/* Hover & active states */
.jr-mobile-nav-link:hover,
.jr-mobile-nav-link.jr-active {
  color: var(--jr-accent);
  background: var(--jr-bg-alt);
  padding-left: 28px;
}
.jr-mobile-nav-link:hover .jr-nav-arrow,
.jr-mobile-nav-link.jr-active .jr-nav-arrow { color: var(--jr-accent); transform: translateX(4px); }
/* Active accent bar */
.jr-mobile-nav-link.jr-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--jr-accent);
  border-radius: 0 3px 3px 0;
}

/* Quick contact strip */
.jr-mobile-contact-quick {
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--jr-bg-alt);
  border-top: 1px solid var(--jr-border);
}
.jr-mobile-quick-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--jr-text-primary);
  transition: color var(--jr-transition);
  cursor: default;
}
a.jr-mobile-quick-link { cursor: pointer; }
a.jr-mobile-quick-link:hover { color: var(--jr-accent); }
a.jr-mobile-quick-link:hover .jr-mobile-quick-val { color: var(--jr-accent); }
.jr-mobile-quick-icon {
  width: 38px;
  height: 38px;
  background: var(--jr-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jr-accent);
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid var(--jr-border);
}
.jr-mobile-quick-body { display: flex; flex-direction: column; gap: 1px; }
.jr-mobile-quick-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--jr-text-muted);
  font-weight: 700;
}
.jr-mobile-quick-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--jr-text-primary);
  font-family: var(--jr-font-heading);
  transition: color var(--jr-transition);
}

/* CTA footer — always visible at bottom (flex-shrink: 0) */
.jr-mobile-nav-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--jr-border);
  background: var(--jr-surface);
  flex-shrink: 0;
}

/* ============================================================
   7. HERO
   ============================================================ */
.jr-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Account for fixed header (~110px) */
  padding-top: 110px;
}

.jr-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.jr-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.jr-hero-bg-img.jr-loaded { transform: scale(1); }
.jr-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10,12,18,0.88) 0%, rgba(10,12,18,0.6) 55%, rgba(10,12,18,0.3) 100%);
}

.jr-hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.jr-hero-content {
  max-width: 680px;
  flex-shrink: 0;
}

.jr-hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--jr-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  animation: jr-fade-up 0.8s ease 0.2s both;
}
.jr-hero-badge-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.25);
  max-width: 40px;
}

.jr-hero-since {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  animation: jr-fade-up 0.8s ease 0.35s both;
}
.jr-hero-since-text {
  font-family: var(--jr-font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.jr-hero-since-year {
  font-family: var(--jr-font-display);
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 800;
  color: var(--jr-copper-light);
  line-height: 1;
  letter-spacing: -3px;
  opacity: 0.85;
}

.jr-hero-headline {
  font-family: var(--jr-font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 24px;
  animation: jr-fade-up 0.8s ease 0.5s both;
}
.jr-hero-headline em {
  font-style: italic;
  color: var(--jr-copper-light);
}

.jr-hero-subline {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
  animation: jr-fade-up 0.8s ease 0.65s both;
}

.jr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: jr-fade-up 0.8s ease 0.8s both;
}

/* Hero floating cards */
.jr-hero-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: jr-fade-in 1s ease 1s both;
}
.jr-hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--jr-radius-lg);
  padding: 24px 32px;
  text-align: center;
  min-width: 160px;
}
.jr-hero-card-number {
  display: block;
  font-family: var(--jr-font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--jr-copper-light);
  line-height: 1;
  margin-bottom: 8px;
}
.jr-hero-card-number sup { font-size: 22px; }
.jr-hero-card-icon {
  display: block;
  font-size: 36px;
  color: var(--jr-copper-light);
  line-height: 1;
  margin-bottom: 8px;
}
.jr-hero-card-label {
  display: block;
  font-family: var(--jr-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* Scroll cue */
.jr-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.jr-scroll-cue-inner {
  display: block;
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  position: relative;
}
.jr-scroll-cue-inner::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 99px;
  animation: jr-scroll-dot 1.8s ease infinite;
}
@keyframes jr-scroll-dot {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ============================================================
   8. TRUST BAR
   ============================================================ */
.jr-trust-bar {
  background: var(--jr-copper);
  padding: 20px 0;
}
.jr-trust-bar-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.jr-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--jr-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.jr-trust-icon { font-size: 18px; opacity: 0.85; }
.jr-trust-sep {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

/* ============================================================
   9. ABOUT
   ============================================================ */
.jr-about { background: var(--jr-bg); }

.jr-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.jr-about-images {
  position: relative;
  padding-bottom: 60px;
  padding-right: 60px;
}
.jr-about-img-main {
  position: relative;
  border-radius: var(--jr-radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.jr-about-img-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.jr-about-img-main:hover img { transform: scale(1.04); }

.jr-about-img-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 240px;
  height: 200px;
  border-radius: var(--jr-radius-lg);
  overflow: hidden;
  border: 6px solid var(--jr-surface);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.jr-about-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jr-about-badge-float {
  position: absolute;
  top: 40px;
  right: 20px;
  background: var(--jr-copper);
  color: #fff;
  border-radius: var(--jr-radius-lg);
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(184,115,26,0.4);
}
.jr-badge-year {
  display: block;
  font-family: var(--jr-font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.jr-badge-label {
  display: block;
  font-family: var(--jr-font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
}

.jr-about-content {}

.jr-about-lead {
  font-size: 17px;
  color: var(--jr-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.jr-about-body {
  font-size: 16px;
  color: var(--jr-text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.jr-about-pillars {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.jr-pillar {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.jr-pillar-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--jr-copper-pale);
  border-radius: var(--jr-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--jr-copper);
}
.jr-pillar-title {
  font-family: var(--jr-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--jr-heading-color);
  margin: 0 0 4px;
}
.jr-pillar p {
  font-size: 14px;
  color: var(--jr-text-muted);
  margin: 0;
  line-height: 1.65;
}

.jr-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   10. HERITAGE MARQUEE BAND
   ============================================================ */
.jr-heritage-band {
  background: var(--jr-charcoal);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}
[data-theme="dark"] .jr-heritage-band { background: var(--jr-bg-dark); }

.jr-heritage-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  animation: jr-marquee 24s linear infinite;
}
.jr-heritage-track span {
  font-family: var(--jr-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.jr-heritage-track .jr-dot { color: var(--jr-copper); opacity: 0.7; font-size: 8px; }
@keyframes jr-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   11. SERVICES
   ============================================================ */
.jr-services { background: var(--jr-bg-alt); }

.jr-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.jr-service-card {
  background: var(--jr-surface);
  border-radius: var(--jr-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform var(--jr-transition), box-shadow var(--jr-transition);
  display: flex;
  flex-direction: column;
}
.jr-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

.jr-service-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.jr-service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.jr-service-card:hover .jr-service-card-media img { transform: scale(1.08); }
.jr-service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,12,18,0.4));
}

.jr-service-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.jr-service-card-body--solo {
  justify-content: center;
}

.jr-service-icon {
  width: 52px;
  height: 52px;
  background: var(--jr-copper-pale);
  border-radius: var(--jr-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--jr-copper);
  margin-bottom: 16px;
  transition: all var(--jr-transition);
}
.jr-service-card:hover .jr-service-icon {
  background: var(--jr-copper);
  color: #fff;
}

.jr-service-title {
  font-family: var(--jr-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--jr-heading-color);
  margin: 0 0 12px;
}

.jr-service-desc {
  font-size: 15px;
  color: var(--jr-text-muted);
  line-height: 1.7;
  margin: 0 0 20px;
  flex: 1;
}

.jr-service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--jr-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--jr-accent);
  text-decoration: none;
  transition: gap var(--jr-transition), color var(--jr-transition);
  margin-top: auto;
}
.jr-service-cta:hover { gap: 14px; color: var(--jr-accent-hover); }

/* Accent service card (no image) */
.jr-service-card--accent {
  background: linear-gradient(135deg, var(--jr-charcoal), var(--jr-slate));
}
.jr-service-card--accent .jr-service-icon {
  background: rgba(184,115,26,0.2);
}
.jr-service-card--accent .jr-service-title { color: #fff; }
.jr-service-card--accent .jr-service-desc { color: rgba(255,255,255,0.65); }

/* ============================================================
   12. WHY CHOOSE US
   ============================================================ */
.jr-why {
  position: relative;
  overflow: hidden;
  padding: var(--jr-section-py) 0;
  background: var(--jr-charcoal);
}
.jr-why-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.jr-why-bg img { width: 100%; height: 100%; object-fit: cover; }
.jr-why-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,12,18,0.88);
}
.jr-why-inner {
  position: relative;
  z-index: 1;
}
.jr-why-header {
  margin-bottom: 56px;
  max-width: 640px;
}
.jr-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.jr-why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--jr-radius-lg);
  padding: 36px 28px;
  transition: all var(--jr-transition);
}
.jr-why-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-6px);
  border-color: rgba(184,115,26,0.4);
}
.jr-why-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(184,115,26,0.15);
  border-radius: var(--jr-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--jr-copper-light);
  margin-bottom: 20px;
}
.jr-why-card-title {
  font-family: var(--jr-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.jr-why-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0;
}
.jr-why-cta { text-align: center; }

/* ============================================================
   13. GALLERY
   ============================================================ */
.jr-gallery { background: var(--jr-bg); }

.jr-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.jr-gallery-item {
  border-radius: var(--jr-radius-lg);
  overflow: hidden;
  position: relative;
}
.jr-gallery-item--tall { grid-row: span 2; }
.jr-gallery-inner {
  position: relative;
  height: 100%;
  min-height: 220px;
}
.jr-gallery-item--tall .jr-gallery-inner { min-height: 460px; }
.jr-gallery-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.jr-gallery-item:hover .jr-gallery-inner img { transform: scale(1.08); }

.jr-gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(10,12,18,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--jr-transition);
  color: #fff;
}
.jr-gallery-hover i { font-size: 36px; color: var(--jr-copper-light); }
.jr-gallery-hover span {
  font-family: var(--jr-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.jr-gallery-item:hover .jr-gallery-hover { opacity: 1; }

/* ============================================================
   14. RESIDENTIAL / COMMERCIAL SPLIT
   ============================================================ */
.jr-split {}
.jr-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.jr-split-panel {
  position: relative;
  overflow: hidden;
  padding: 96px 64px;
  display: flex;
  align-items: flex-end;
  min-height: 600px;
}
.jr-split-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.jr-split-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.jr-split-panel:hover .jr-split-bg img { transform: scale(1.06); }
.jr-split-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,12,18,0.88) 0%, rgba(10,12,18,0.5) 60%, rgba(10,12,18,0.3) 100%);
}
.jr-split-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
}
.jr-split-title {
  font-family: var(--jr-font-display);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 8px 0 20px;
}
.jr-split-content p {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.jr-split-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jr-split-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--jr-font-heading);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.jr-split-list li i { color: var(--jr-copper-light); font-size: 12px; }

/* ============================================================
   15. SERVICE AREA
   ============================================================ */
.jr-area { background: var(--jr-bg-alt); }

.jr-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.jr-area-intro {
  font-size: 17px;
  color: var(--jr-text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.jr-area-contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.jr-area-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.jr-area-icon {
  width: 44px;
  height: 44px;
  background: var(--jr-copper-pale);
  border-radius: var(--jr-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--jr-copper);
  flex-shrink: 0;
}
.jr-area-contact-row strong {
  display: block;
  font-family: var(--jr-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--jr-text-muted);
  margin-bottom: 4px;
}
.jr-area-contact-row address,
.jr-area-contact-row a,
.jr-area-contact-row span {
  font-size: 15px;
  color: var(--jr-text-primary);
  line-height: 1.6;
}
.jr-area-contact-row a:hover { color: var(--jr-accent); }

.jr-area-visual {}
.jr-area-card {
  position: relative;
  background: var(--jr-surface);
  border-radius: var(--jr-radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.jr-area-card-label {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  background: var(--jr-copper);
  color: #fff;
  font-family: var(--jr-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--jr-radius);
}
.jr-area-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  opacity: 0.9;
}
.jr-area-pin {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--jr-charcoal);
  color: #fff;
  font-family: var(--jr-font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--jr-radius);
  display: flex;
  align-items: center;
  gap: 8px;
}
.jr-area-pin i { color: var(--jr-copper-light); }

/* ============================================================
   16. CTA BAND
   ============================================================ */
.jr-cta-band {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.jr-cta-band-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.jr-cta-band-bg img { width: 100%; height: 100%; object-fit: cover; }
.jr-cta-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,12,18,0.95) 0%, rgba(10,12,18,0.85) 50%, rgba(10,12,18,0.75) 100%);
}
.jr-cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.jr-cta-band-text { flex: 1; min-width: 300px; }
.jr-cta-band-title {
  font-family: var(--jr-font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 8px 0 16px;
}
.jr-cta-band-title em { font-style: italic; color: var(--jr-copper-light); }
.jr-cta-band-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}
.jr-cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-shrink: 0;
}

/* ============================================================
   17. CONTACT
   ============================================================ */
.jr-contact { background: var(--jr-bg); }

.jr-contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Form */
.jr-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.jr-form-group { margin-bottom: 20px; }
.jr-form-group:last-of-type { margin-bottom: 0; }

.jr-form-label {
  display: block;
  font-family: var(--jr-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--jr-text-secondary);
  margin-bottom: 8px;
}
.jr-required { color: var(--jr-copper); }

.jr-form-input,
.jr-form-select,
.jr-form-textarea {
  width: 100%;
  background: var(--jr-surface);
  border: 1.5px solid var(--jr-border);
  border-radius: var(--jr-radius);
  padding: 14px 16px;
  font-family: var(--jr-font-body);
  font-size: 15px;
  color: var(--jr-text-primary);
  transition: border-color var(--jr-transition), box-shadow var(--jr-transition);
  appearance: none;
  outline: none;
}
.jr-form-input:focus,
.jr-form-select:focus,
.jr-form-textarea:focus {
  border-color: var(--jr-copper);
  box-shadow: 0 0 0 3px rgba(184,115,26,0.15);
}
.jr-form-input::placeholder,
.jr-form-textarea::placeholder {
  color: var(--jr-text-4);
}
.jr-form-textarea { resize: vertical; min-height: 130px; }
.jr-form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
}
.jr-contact-form button { margin-top: 8px; }

.jr-form-success {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--jr-radius);
  color: #16a34a;
  font-family: var(--jr-font-heading);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.jr-form-error-msg {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--jr-radius);
  color: #dc2626;
  font-family: var(--jr-font-heading);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.jr-form-error-msg a { color: #dc2626; text-decoration: underline; }
.jr-form-error-msg i { margin-top: 2px; flex-shrink: 0; }

/* Contact info card */
.jr-contact-info-card {
  background: var(--jr-charcoal);
  border-radius: var(--jr-radius-xl);
  padding: 40px 36px;
  color: #fff;
}
.jr-contact-card-title {
  font-family: var(--jr-font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.jr-contact-card-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 36px;
  font-style: italic;
}

.jr-contact-details {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.jr-contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.jr-cd-icon {
  width: 44px;
  height: 44px;
  background: rgba(184,115,26,0.18);
  border-radius: var(--jr-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--jr-copper-light);
  flex-shrink: 0;
}
.jr-contact-details strong {
  display: block;
  font-family: var(--jr-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.jr-contact-details address,
.jr-contact-details span { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.6; }
.jr-contact-details a { color: rgba(255,255,255,0.85); }
.jr-contact-details a:hover { color: var(--jr-copper-light); }

.jr-contact-heritage {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.jr-ch-year {
  font-family: var(--jr-font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--jr-copper-light);
  line-height: 1;
}
.jr-ch-label {
  font-family: var(--jr-font-heading);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ============================================================
   18. FOOTER
   ============================================================ */
.jr-footer { background: var(--jr-charcoal); }
[data-theme="dark"] .jr-footer { background: #0A0C12; }

.jr-footer-main { padding: 80px 0 56px; }
.jr-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.jr-footer-logo {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}
.jr-footer-logo .jr-logo-word-jackson { color: #fff; }
.jr-footer-logo .jr-logo-word-roofing { color: var(--jr-copper-light); }

.jr-footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin: 0;
  max-width: 280px;
}

.jr-footer-col-title {
  font-family: var(--jr-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 20px;
}

.jr-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jr-footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--jr-transition), padding-left var(--jr-transition);
  display: inline-block;
}
.jr-footer-links a:hover { color: var(--jr-copper-light); padding-left: 6px; }

.jr-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.jr-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.jr-footer-contact li i {
  color: var(--jr-copper-light);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
}
.jr-footer-contact a { color: rgba(255,255,255,0.6); }
.jr-footer-contact a:hover { color: var(--jr-copper-light); }
.jr-footer-contact address { color: rgba(255,255,255,0.6); line-height: 1.6; }

/* Footer bottom */
.jr-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.jr-footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.jr-footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin: 0;
}
.jr-footer-tagline-bottom {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ============================================================
   19. BACK TO TOP
   ============================================================ */
.jr-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  width: 48px;
  height: 48px;
  background: var(--jr-copper);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(184,115,26,0.4);
  transition: all var(--jr-transition);
  animation: jr-btt-in 0.3s ease;
}
.jr-back-to-top[hidden] { display: none; }
.jr-back-to-top:hover { background: var(--jr-copper-hover); transform: translateY(-3px); }
@keyframes jr-btt-in { from { opacity:0; transform: scale(0.8); } to { opacity:1; transform: scale(1); } }

/* ============================================================
   20. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.jr-reveal-up,
.jr-reveal-left,
.jr-reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.jr-reveal-left  { transform: translateX(-40px); }
.jr-reveal-right { transform: translateX(40px); }

.jr-revealed {
  opacity: 1;
  transform: none;
}

/* Hero entry animations */
@keyframes jr-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes jr-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   21. RESPONSIVE — 1200px
   ============================================================ */
@media (max-width: 1200px) {
  :root {
    --jr-section-py: 80px;
    --jr-container-pad: 32px;
  }
  .jr-about-grid { gap: 56px; }
  .jr-why-grid { grid-template-columns: repeat(2, 1fr); }
  .jr-footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .jr-footer-brand { grid-column: span 3; }
}

/* ============================================================
   22. RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .jr-hero-cards { display: none; }
  .jr-services-grid { grid-template-columns: repeat(2, 1fr); }
  .jr-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .jr-gallery-item--tall { grid-row: span 1; }
  .jr-gallery-inner { min-height: 260px !important; }
  .jr-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .jr-area-grid { gap: 48px; }
}

/* ============================================================
   23. RESPONSIVE — 990px (critical breakpoint)
   ============================================================ */
@media (max-width: 990px) {
  :root {
    --jr-section-py: 72px;
    --jr-container-pad: 24px;
  }

  /* Navigation — switch to mobile */
  .jr-nav { display: none; }
  .jr-mobile-toggle { display: flex; }
  .jr-header-cta .jr-btn-sm { display: none; }

  /* Hide top bar address on 990 */
  .jr-top-address { display: none; }

  /* About layout stack */
  .jr-about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .jr-about-images {
    padding-right: 40px;
    padding-bottom: 40px;
    max-width: 600px;
    margin: 0 auto;
  }
  .jr-about-img-main img { height: 380px; }

  /* Split */
  .jr-split-grid { grid-template-columns: 1fr; }
  .jr-split-panel { min-height: 480px; padding: 64px 40px; }

  /* Area */
  .jr-area-grid { grid-template-columns: 1fr; gap: 40px; }
  .jr-area-visual { max-width: 480px; }

  /* CTA band */
  .jr-cta-band-inner { flex-direction: column; text-align: center; }
  .jr-cta-band-actions { justify-content: center; }

  /* Footer */
  .jr-footer-grid { grid-template-columns: 1fr 1fr; }
  .jr-footer-brand { grid-column: span 2; }
}

/* ============================================================
   24. RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --jr-section-py: 60px;
    --jr-container-pad: 20px;
  }

  /* Hero */
  .jr-hero { min-height: 90vh; min-height: 90svh; }
  .jr-hero-container { flex-direction: column; }
  .jr-hero-headline { font-size: clamp(32px, 8vw, 52px); }
  .jr-hero-since-year { font-size: clamp(48px, 12vw, 80px); }
  .jr-hero-actions { flex-direction: column; }
  .jr-hero-actions .jr-btn { width: 100%; justify-content: center; }

  /* Trust bar */
  .jr-trust-bar-list { flex-direction: column; gap: 12px; }
  .jr-trust-sep { display: none; }

  /* Services */
  .jr-services-grid { grid-template-columns: 1fr; }

  /* Why */
  .jr-why-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Gallery */
  .jr-gallery-grid { grid-template-columns: 1fr 1fr; }

  /* Form row */
  .jr-form-row { grid-template-columns: 1fr; }

  /* Footer */
  .jr-footer-grid { grid-template-columns: 1fr; }
  .jr-footer-brand { grid-column: span 1; }
  .jr-footer-bottom-row { flex-direction: column; text-align: center; }

  /* Section header */
  .jr-section-header { margin-bottom: 44px; }

  /* Split panels */
  .jr-split-panel { padding: 56px 28px; min-height: 400px; }
}

/* ============================================================
   25. RESPONSIVE — 600px
   ============================================================ */
@media (max-width: 600px) {
  :root { --jr-section-py: 52px; }

  .jr-header-top-left { flex-wrap: nowrap; }
  .jr-hours-label { display: none; }

  .jr-hero { padding-top: 90px; }
  .jr-hero-container { padding-top: 48px; padding-bottom: 64px; }
  .jr-hero-badge { font-size: 10px; }

  .jr-gallery-grid { grid-template-columns: 1fr; }

  .jr-about-images { padding-right: 20px; }
  .jr-about-img-accent { width: 160px; height: 130px; }

  .jr-contact-info-card { padding: 28px 24px; }

  .jr-cta-band { padding: 72px 0; }
  .jr-cta-band-actions { flex-direction: column; width: 100%; }
  .jr-cta-band-actions .jr-btn { width: 100%; justify-content: center; }

  .jr-back-to-top { bottom: 20px; right: 20px; }
}

/* ============================================================
   26. RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  :root { --jr-section-py: 48px; }

  .jr-logo-word-jackson { font-size: 18px; }
  .jr-logo-est { display: none; }

  .jr-hero-since-year { font-size: 52px; }
  .jr-hero-headline { font-size: 30px; }

  .jr-split-panel { min-height: 360px; padding: 40px 20px; }
  .jr-split-title { font-size: 28px; }

  .jr-contact-card-title { font-size: 20px; }
  .jr-ch-year { font-size: 32px; }

  .jr-about-img-main img { height: 280px; }
  .jr-about-badge-float { top: 16px; right: 4px; padding: 14px 16px; }
  .jr-badge-year { font-size: 24px; }

  .jr-footer-main { padding: 56px 0 40px; }
}

/* ============================================================
   27. RESPONSIVE — 375px
   ============================================================ */
@media (max-width: 375px) {
  :root { --jr-container-pad: 16px; }

  .jr-hero-since-year { font-size: 44px; }
  .jr-hero-headline { font-size: 27px; }
  .jr-section-title { font-size: 28px; }

  .jr-btn-lg { padding: 16px 28px; font-size: 14px; }

  .jr-mobile-nav { width: 100vw; }
  .jr-mobile-nav-scroll { -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   27b. HEADER SCROLLED STATE
   ============================================================ */
.jr-header-main.jr-scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.12);
}
[data-theme="dark"] .jr-header-main.jr-scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

/* Hero naturally handles fixed header overlap via its own padding-top.
   No body padding-top needed — the hero is full-viewport and the
   header overlays it cinematically. */

/* Form error states */
.jr-form-input.jr-form-error,
.jr-form-select.jr-form-error,
.jr-form-textarea.jr-form-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

/* Header transition override (prevent flash) */
.jr-header {
  will-change: transform;
}

/* Gallery grid — ensure consistent heights for non-tall items */
.jr-gallery-item:not(.jr-gallery-item--tall) .jr-gallery-inner {
  height: 240px;
}

/* ============================================================
   28. DARK MODE SPECIFIC OVERRIDES
   ============================================================ */
[data-theme="dark"] .jr-service-card { background: var(--jr-surface-2); }
[data-theme="dark"] .jr-why-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .jr-form-input,
[data-theme="dark"] .jr-form-select,
[data-theme="dark"] .jr-form-textarea {
  background: var(--jr-surface);
  border-color: var(--jr-border);
  color: var(--jr-text-primary);
}
[data-theme="dark"] .jr-area-card { background: var(--jr-surface); }
[data-theme="dark"] .jr-about-img-accent { border-color: var(--jr-surface); }
[data-theme="dark"] .jr-pillar-icon { background: rgba(184,115,26,0.12); }
[data-theme="dark"] .jr-area-icon { background: rgba(184,115,26,0.12); }


/* ============================================================
   29. ADDITIONAL MOBILE REFINEMENTS
   ============================================================ */

/* Trust bar — horizontal scroll on small screens */
@media (max-width: 600px) {
  .jr-trust-bar { overflow: hidden; padding: 10px 0; }
  .jr-trust-bar-list {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding-bottom: 4px;
  }
  .jr-trust-bar-list::-webkit-scrollbar { display: none; }
  .jr-trust-sep { display: flex !important; flex-shrink: 0; width: 1px; height: 28px; align-self: center; }
  .jr-trust-item { flex-shrink: 0; padding: 0 14px; font-size: 12px; gap: 6px; white-space: nowrap; }
}

/* Service card images — taller at single-column layout */
@media (max-width: 768px) {
  .jr-service-card-media { height: 240px; }
}
@media (max-width: 480px) {
  .jr-service-card-media { height: 200px; }
  .jr-service-card-body { padding: 22px 20px; }
}

/* Gallery single column — keep items tall enough */
@media (max-width: 600px) {
  .jr-gallery-inner { min-height: 240px !important; }
  .jr-gallery-item--tall .jr-gallery-inner { min-height: 340px !important; }
}

/* About images — prevent badge overflow at very small sizes */
@media (max-width: 375px) {
  .jr-about-images {
    padding-right: 10px;
    padding-bottom: 20px;
  }
  .jr-about-img-accent {
    width: 110px;
    height: 90px;
  }
  .jr-about-badge-float {
    top: 12px;
    right: 0;
    bottom: auto;
    padding: 10px 12px;
  }
  .jr-badge-year { font-size: 20px; }
}

/* Why section — card text at narrow widths */
@media (max-width: 480px) {
  .jr-why-card { padding: 28px 22px; }
  .jr-why-card-title { font-size: 16px; }
}

/* Split panel — content alignment on mobile */
@media (max-width: 600px) {
  .jr-split-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .jr-split-list li { font-size: 13px; }
}
@media (max-width: 375px) {
  .jr-split-list { grid-template-columns: 1fr; }
}

/* Contact form — input padding on small screens */
@media (max-width: 480px) {
  .jr-form-input,
  .jr-form-select,
  .jr-form-textarea {
    padding: 12px 14px;
    font-size: 14px;
  }
  .jr-contact-info-card { padding: 24px 18px; }
  .jr-ch-year { font-size: 28px; }
}

/* Area section — constrain map card on mobile */
@media (max-width: 600px) {
  .jr-area-card img { height: 240px; }
  .jr-area-visual { max-width: 100%; }
}

/* Header top bar — prevent overflow at 375px */
@media (max-width: 375px) {
  .jr-header-top { padding: 6px 0; }
  .jr-top-phone { font-size: 12px; }
  .jr-theme-toggle { padding: 4px 10px; font-size: 12px; }
}

/* Footer — ensure footer columns don't overflow */
@media (max-width: 480px) {
  .jr-footer-main { padding: 48px 0 32px; }
  .jr-footer-grid { gap: 32px; }
  .jr-footer-desc { max-width: 100%; }
}

/* Section headers — clamp on very small screens */
@media (max-width: 375px) {
  .jr-section-label { font-size: 9px; }
  .jr-section-title { font-size: 26px; }
  .jr-hero-badge { font-size: 9px; }
}

/* Ensure hero "Since" line doesn't overflow */
@media (max-width: 375px) {
  .jr-hero-since { gap: 6px; }
  .jr-hero-since-text { font-size: 14px; }
}

/* Fix: service card accent (no image) has enough height on mobile */
.jr-service-card--accent { min-height: 280px; }
@media (max-width: 768px) {
  .jr-service-card--accent { min-height: 240px; }
}

/* Improve: hero subline on mobile */
@media (max-width: 480px) {
  .jr-hero-subline { font-size: 15px; }
}

/* Ensure CTA band buttons stack cleanly */
@media (max-width: 480px) {
  .jr-cta-band-title { font-size: 26px; }
}
