/*
Theme Name: Route Child
Theme URI: http://chilithemes.com/route
Author: Chilithemes
Author URI: http://chilithemes.com
Description: JW Property Services — visual match to jw-propertyservices.com
Template: route
Version: 1.3.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: route-child
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --jw-blue: #2d2a73;
  --jw-yellow: #f8ce29;
  --jw-cream: #fefce8;
  --jw-tint: rgba(248, 206, 41, 0.1);
  --jw-badge: rgba(248, 206, 41, 0.4);
  --jw-contact: rgba(248, 206, 41, 0.7);
  --jw-gray-800: #1f2937;
  --jw-gray-700: #374151;
  --jw-gray-600: #4b5563;
  --jw-gray-500: #6b7280;
  --jw-ink: #0a0a0a;
  --radius: 0.5rem;
}

html,
body,
#page,
.cs-container,
.cs-section,
p, a, li, span, input, textarea, select, button, label,
.cs-header,
#masthead,
#navigation,
.cs-logo a,
h1, h2, h3, h4, h5, h6 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
}

body {
  color: var(--jw-gray-700);
  background: #fff;
  font-size: 16px;
  line-height: 1.625;
}

#page { padding-top: 0 !important; }

/* Original site has no Route one-page side dots or header search */
#cs-fixed-nav,
body #cs-fixed-nav,
.cs-fixed-nav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
#masthead .cs-menu-search,
.cs-menu-search,
.cs-module-search,
.cs-top-modal.cs-menu-search {
  display: none !important;
}

/* ---- Header: Route uses #site-nav / .cs-sticky-item, not #navigation ---- */
#masthead {
  background: #fff !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: none !important;
}
#site-header-shadow { display: none !important; }

#masthead .container {
  max-width: 1400px !important;
  width: 100% !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
#masthead .cs-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  float: none !important;
  width: 100% !important;
  max-width: none;
  margin: 0;
  padding: 1rem 0 !important;
  min-height: 100px;
  box-sizing: border-box;
}

#site-logo,
.cs-header-default #site-logo {
  float: none !important;
  max-width: none !important;
  flex: 0 0 auto;
}
#site-logo a.cs-sticky-item,
#masthead .cs-sticky-item {
  height: auto !important;
  line-height: normal !important;
}
#site-logo img,
#masthead .cs-logo,
#masthead .cs-logo2x {
  height: 100px !important;
  width: auto !important;
  max-height: 100px !important;
  padding: 0 !important;
}

#site-nav,
.cs-header-default #site-nav {
  float: none !important;
  display: flex !important;
  align-items: center !important;
}
#site-nav > ul {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0 !important;
  padding: 0 !important;
}
#site-nav > ul > li {
  float: none !important;
  height: auto !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;
}

#site-nav .cs-link,
#site-nav > ul > li > .cs-link,
#site-nav .current-menu-item > .cs-link,
#site-nav .current-menu-ancestor > .cs-link,
.cs-header-default #site-nav .cs-sticky-item {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.25 !important;
  height: auto !important;
  color: var(--jw-ink) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}
#site-nav .cs-link:hover,
#site-nav > ul > li > .cs-link:hover,
#site-nav .current-menu-item > .cs-link:hover {
  color: var(--jw-blue) !important;
}

/* Route menu-effect draws a ::before underline; do not share that slot with icons */
.cs-menu-effect #site-nav .cs-link-depth-0::before,
.cs-menu-effect #site-nav .cs-link-depth-0:hover::before,
#site-nav .cs-link::before {
  content: none !important;
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

/* Phone icon as background so hover cannot clone a second ::before */
#site-nav .menu-item-21 > .cs-link {
  padding-left: 1.5rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: 16px 16px !important;
}
#site-nav .menu-item-21 > .cs-link:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2a73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") !important;
}

/* Header Get a Quote — original h-10 rounded-md navy, not a 100px sticky bar */
#site-nav .menu-item-22 > .cs-link,
#site-nav .jwps-quote-btn > .cs-link,
.menu-item-22 > a {
  background: var(--jw-blue) !important;
  color: #fafafa !important;
  border: 0 !important;
  border-radius: 6px !important;
  height: 40px !important;
  min-height: 40px !important;
  line-height: 1 !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  white-space: nowrap;
}
#site-nav .menu-item-22 > .cs-link:hover,
#site-nav .jwps-quote-btn > .cs-link:hover,
.menu-item-22 > a:hover {
  background: rgb(248 206 41 / 0.9) !important;
  color: #fafafa !important;
}

/* ---- Strip Route / WPBakery section chrome (row classes are dropped on one-page) ---- */
#main,
.cs-content,
.cs-container,
.entry-content,
.cs-section {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent;
}

.cs-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: #fff;
}

.cs-section .wpb_text_column,
.cs-section .wpb_single_image,
.cs-section .wpb_gmaps_widget,
.cs-section .wpb_content_element {
  margin-bottom: 0 !important;
}

.cs-section h1,
.cs-section h2,
.cs-section h3 {
  text-transform: none !important;
  font-weight: 700 !important;
}

.jwps-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.jwps-flag {
  display: block;
  height: 0;
  overflow: hidden;
}

/* Section backgrounds — flags live in content because Route strips row CSS */
.cs-section:has(.jwps-flag-hero) {
  background: linear-gradient(to bottom, var(--jw-cream), #fff) !important;
}
.cs-section:has(.jwps-flag-white) {
  background: #fff !important;
}
.cs-section:has(.jwps-flag-tint) {
  background: var(--jw-tint) !important;
}
.cs-section:has(.jwps-flag-contact) {
  background: var(--jw-contact) !important;
}
.cs-section:has(.jwps-flag-footer) {
  background: #fff !important;
  border-top: 1px solid #e5e7eb;
}

.jwps-section {
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .jwps-section { padding: 6rem 0; }
}
@media (min-width: 1024px) {
  .jwps-section { padding: 8rem 0; }
}

.jwps-section-quote { padding: 4rem 0; }

.jwps-footer-wrap { padding: 1.5rem 0; }

/* Headings */
.jwps-h1 {
  color: var(--jw-blue) !important;
  font-size: 1.875rem !important;
  line-height: 2.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.05em !important;
  margin: 0 0 1rem !important;
  text-transform: none !important;
}
@media (min-width: 640px) {
  .jwps-h1 { font-size: 2.25rem !important; line-height: 2.5rem !important; }
}
@media (min-width: 768px) {
  .jwps-h1 { font-size: 3rem !important; line-height: 1 !important; }
}

.jwps-h2 {
  color: var(--jw-blue) !important;
  font-size: 1.875rem !important;
  line-height: 2.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.05em !important;
  margin: 0 0 1rem !important;
  text-transform: none !important;
}
@media (min-width: 640px) {
  .jwps-h2 { font-size: 3rem !important; line-height: 1 !important; }
}

.jwps-lead {
  color: var(--jw-gray-500);
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.625;
}
@media (min-width: 768px) {
  .jwps-lead { font-size: 1.25rem; line-height: 1.625; }
}

.jwps-center { text-align: center; }
.jwps-center .jwps-lead { margin-left: auto; margin-right: auto; max-width: 900px; }

/* Yellow pill badges with Lucide icon */
.jwps-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  background: var(--jw-badge);
  color: var(--jw-blue);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}
.jwps-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--jw-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Lucide icons — original uses text-blue, not yellow */
.jwps-lucide {
  stroke: var(--jw-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.jwps-icon-lg { width: 24px; height: 24px; }
.jwps-icon-md { width: 20px; height: 20px; }
.jwps-icon-sm { width: 16px; height: 16px; }
.jwps-icon-xl { width: 32px; height: 32px; }

/* Hero: 2-column, cream-to-white, image beside copy */
.jwps-hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .jwps-hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.jwps-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Buttons — shadcn default: h-10, text-sm, font-medium, rounded-md (radius - 2px) */
.jwps-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 400px) {
  .jwps-actions { flex-direction: row; flex-wrap: wrap; }
}
.jwps-actions-center {
  justify-content: center;
}

.jwps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0.5rem 1rem;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: 6px;
  text-decoration: none !important;
  box-sizing: border-box;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.jwps-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jwps-btn-yellow {
  background: var(--jw-yellow);
  color: #fafafa !important;
  border-color: var(--jw-yellow);
}
.jwps-btn-yellow:hover {
  background: var(--jw-blue);
  border-color: var(--jw-blue);
  color: #fafafa !important;
}

.jwps-btn-outline {
  background: #fff;
  color: var(--jw-blue) !important;
  border-color: var(--jw-yellow);
}
.jwps-btn-outline:hover {
  background: var(--jw-tint);
  color: var(--jw-blue) !important;
}

.jwps-btn-call {
  background: #fff;
  color: var(--jw-blue) !important;
  border-color: #fff;
}
.jwps-btn-call:hover {
  background: var(--jw-blue);
  color: #fff !important;
  border-color: var(--jw-blue);
}

.jwps-btn-ghost {
  background: var(--jw-blue);
  color: #fff !important;
  border-color: #fff;
}
.jwps-btn-ghost:hover {
  background: #fff;
  color: var(--jw-blue) !important;
  border-color: #fff;
}

/* Service cards: 2×2, white, p-6, shadow-sm, blue icons */
.jwps-services {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 3rem auto 0;
}
@media (min-width: 1024px) {
  .jwps-services { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.jwps-services-col {
  display: grid;
  gap: 1.5rem;
}

.jwps-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.jwps-card:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.jwps-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.jwps-card h3 {
  color: var(--jw-ink) !important;
  font-size: 1.25rem !important;
  line-height: 1.75rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.jwps-card ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  gap: 0.5rem;
}
.jwps-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--jw-gray-500);
  font-size: 1rem;
  margin: 0;
}
.jwps-card li svg { margin-top: 2px; }

/* Quote */
.jwps-quote-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.jwps-quote-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--jw-gray-800) !important;
  font-size: 1.875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  margin: 0 0 1.5rem !important;
  text-transform: none !important;
  line-height: 1.2 !important;
}
@media (min-width: 768px) {
  .jwps-quote-title { font-size: 2.25rem !important; line-height: 2.5rem !important; }
}
.jwps-quote-sub {
  color: var(--jw-gray-700);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 2rem;
}
.jwps-quote-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--jw-gray-800);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  text-decoration: none !important;
}
.jwps-quote-phone:hover { color: var(--jw-blue); }

.jwps-form-box,
.cs-section:has(#quote) .gform_wrapper {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  padding: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}
.cs-section:has(#quote) {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.gform_wrapper.gravity-theme,
.gform-theme--orbital,
.gform_wrapper {
  --gf-color-primary: #2d2a73 !important;
  --gf-ctrl-border-color: #e4e4e7 !important;
  --gf-ctrl-radius: 6px !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
}
.gform_wrapper .gfield_label {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--jw-ink) !important;
}
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper select,
.gform_wrapper textarea {
  height: auto !important;
  min-height: 40px;
  border-radius: 6px !important;
  border-color: #e4e4e7 !important;
  font-size: 1rem !important;
}
.gform_wrapper input[type="submit"],
.gform_wrapper .gform_button,
.gform_wrapper .gform-button--primary {
  background: var(--jw-blue) !important;
  border: 1px solid var(--jw-blue) !important;
  color: #fafafa !important;
  height: 40px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  width: 100% !important;
}
.gform_wrapper input[type="submit"]:hover,
.gform_wrapper .gform_button:hover,
.gform_wrapper .gform-button--primary:hover {
  background: var(--jw-yellow) !important;
  border-color: var(--jw-yellow) !important;
  color: #fafafa !important;
}

/* Map */
.jwps-map {
  max-width: 48rem;
  margin: 2rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  aspect-ratio: 16 / 9;
}
.jwps-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.jwps-map-caption {
  text-align: center;
  color: var(--jw-gray-500);
  margin: 1rem 0 0;
}

/* Why us: 4 bordered centered cards, circular yellow-10 + blue check */
.jwps-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 3rem auto 0;
}
@media (min-width: 768px) {
  .jwps-why-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .jwps-why-grid { grid-template-columns: repeat(4, 1fr); }
}
.jwps-why {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.jwps-why-icon {
  width: auto;
  height: auto;
  border-radius: 9999px;
  background: var(--jw-tint);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.jwps-why h3 {
  color: var(--jw-ink) !important;
  font-size: 1.125rem !important;
  line-height: 1.75rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  text-transform: none !important;
}
.jwps-why p {
  color: var(--jw-gray-500);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Contact */
.jwps-contact-copy {
  color: var(--jw-blue);
  max-width: 900px;
  margin: 0 auto 1.5rem;
}
@media (min-width: 768px) {
  .jwps-contact-copy { font-size: 1.25rem; }
}
.jwps-contact-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--jw-blue);
  margin: 1rem 0 0;
}

/* Footer — original is white, not navy */
.jwps-footer {
  text-align: center;
  color: var(--jw-gray-500);
  font-size: 0.875rem;
}
.jwps-footer img {
  height: 100px;
  width: auto;
  margin: 0 auto 0.5rem;
  display: block;
}
.jwps-footer a {
  color: var(--jw-gray-500) !important;
  text-decoration: none !important;
}
.jwps-footer a:hover { color: var(--jw-blue) !important; }
.jwps-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.75rem 0;
}
.jwps-footer-links a,
.jwps-footer-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.jwps-footer-copy {
  font-size: 0.75rem;
  margin: 1rem 0 0;
}

@media (max-width: 767px) {
  #masthead .cs-inner,
  .jwps-inner { padding-left: 1rem; padding-right: 1rem; }
}
