/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Template:     generatepress
 Version:      0.1
*/


/* Hide Google reCAPTCHA badge on mobile screens */
@media (max-width: 768px) {
  .grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}


/* Logo - Resize header logo on all pages except the front page */

/* Logo Resize - All Pages Except Front Page */
body:not(.home) .navigation-branding img,
body:not(.home) .navigation-branding svg,
body:not(.home) .sticky-navigation-logo img,
body:not(.home) .sticky-navigation-logo svg {
  height: 100px;
  max-height: 100px;
  width: auto;
}

/*Logo Resize - Mobile*/
@media (max-width: 768px) 
{
    #mobile-header .site-logo.mobile-header-logo img 
	{
        height: 75px !important;
    }
}


/* Reduce spacing above and below logo/navigation on all pages except front page */
body:not(.home) .inside-navigation {
  padding-top: 0px;      /* decrease top padding */
  padding-bottom: 0px;   /* decrease bottom padding */
}

body:not(.home) .main-navigation {
  margin-top: 0;         /* remove extra margin if theme adds it */
  margin-bottom: 0;
}

/* Optional: if your theme uses .site-header for extra spacing */
body:not(.home) .site-header {
  padding-top: 0px;
  padding-bottom: 0px;
}

/* Logo Resize - Mobile */
@media (max-width: 768px) {
  body:not(.home) .site-logo img,
  body:not(.home) .site-logo svg {
    height: 52px;
    max-height: 52px;
  }

  /* Reduce vertical spacing on mobile too */
  body:not(.home) .inside-navigation {
    padding-top: 3px;
    padding-bottom: 3px;
  }
}







/*Page Layout Settings*/

/*Separator - Settings*/

.hr-sep-5
{
    height: 5px;
    margin-bottom: 0px;
    margin-top: 0px;
}



/*Custom Section Divider - Settigns*/

.gb-shape-vertical svg 
{
  transform: scaleY(-1) !important;
}


/*Custom Section Divider - Gradient Settings*/

.gradient-divider .gb-shape-divider svg path {
  fill: url(#divider-gradient);
}

/* Define the gradient */
svg defs {
  position: absolute;
}

svg linearGradient#divider-gradient {
  stop-color: #0e7131;
}

svg linearGradient#divider-gradient stop:first-child {
  stop-color: #0e7131; /* start */
  stop-opacity: 1;
}

svg linearGradient#divider-gradient stop:last-child {
  stop-color: #A9BC44; /* end */
  stop-opacity: 1;
}


/*Font Settings*/

.p-18
{
	font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 18px;
}

.p-20
{
	font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 20px;
}

.h1-35
{
	font-size: 35px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0px;
  line-height: 1.25;
	color:#fff;
}


.h1-48
{
	font-size: 48px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0px;
  line-height: 1.25;
	color:#fff;
}

@media (max-width: 768px) {
	.h1-48
{
	font-size:35px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0px;
  line-height: 1.25;
	color:#fff;
	}
}
	
	
.h3-td
{
	margin-bottom:0px;
	font-weight:700;
	text-decoration:underline;
}

.bold-font-heavy
{
	font-weight:700;
	color: #0e7131;
}

.bold-font-heavy-white
{
	font-weight:700;
	color: #fff;
}

.white-font-color
{
	color:#fff;
}

.dark-blue-color
{
	color:#0b284a;
}

.yellow-green-color
{
	color:#A9BC44;
}

.ti-widget.ti-goog .ti-rating-text, .ti-widget.ti-goog .ti-rating-text strong:not(.ti-rating-large), .ti-widget.ti-goog .ti-rating-text strong a, .ti-widget.ti-goog .ti-rating-text strong span, .ti-widget.ti-goog .ti-rating-text span strong, .ti-widget.ti-goog .ti-rating-text span, .ti-widget.ti-goog .ti-footer, .ti-widget.ti-goog .ti-footer strong:not(.ti-rating-large), .ti-widget.ti-goog .ti-footer span, .ti-widget.ti-goog .ti-footer strong a
{
	color:#fff !important; /*Google Review Bar - Font Color*/
}



/* Cover Image -Text Overlay - Settings */

/******************************************************
 * JAMS – Past Projects
 ******************************************************/

/* 0) Section wrapper (optional tidy) */
.project-stack {
  margin: 0;
  padding: 0;
}

/* 1) Remove width clamps/padding inside common wrappers */
.project-stack .gb-inside-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.project-stack .wp-block-group,
.project-stack .wp-block-columns,
.project-stack .wp-block-column {
  margin: 0;
  padding: 0;
}

/* 2) The Cover must fill the parent container width */
.project-stack .wp-block-cover {
  position: relative;             /* anchor bg image */
  display: flex;                  /* overlay is a flex child */
  align-items: flex-end;          /* bottom overlay */
  justify-content: flex-start;    /* left overlay */

  width: 100% !important;         /* fill its container */
  max-width: 100% !important;
  align-self: stretch;            /* stretch if parent is flex */

  min-height: 400px;              /* requested fixed minimum height */
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;

  background-color: transparent;  /* kill gray backgrounds */
  background-size: cover !important;
  background-position: center;
}

/* 2a) If the Cover sits directly in Columns/GB grid, ensure it fills the column */
.project-stack .wp-block-column > .wp-block-cover,
.project-stack .gb-grid-column > .wp-block-cover,
.project-stack .gb-container > .wp-block-cover {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100%;
}

/* 3) The background image MUST fill the Cover box */
.project-stack .wp-block-cover__image-background,
.project-stack .wp-block-cover img.wp-block-cover__image-background {
  position: absolute !important;  /* take out of flow so it can fill */
  inset: 0;                       /* top:0 right:0 bottom:0 left:0 */
  width: 100% !important;         /* <-- 100% width */
  height: 100% !important;        /* <-- fill height */
  object-fit: cover;              /* fill area, maintain aspect */
  display: block;
}

/* 4) Overlay text: small, won’t affect image sizing */
.project-stack .wp-block-cover .wp-block-cover__inner-container {
  position: relative;             /* sits over the image */
  margin: 0 0 12px 12px;          /* bottom-left offset */
  padding: 0;
  max-width: calc(100% - 24px);
}
.project-stack .wp-block-cover__inner-container h1,
.project-stack .wp-block-cover__inner-container h2,
.project-stack .wp-block-cover__inner-container h3,
.project-stack .wp-block-cover__inner-container p,
.project-stack .wp-block-cover__inner-container span {
  font-size: 18px !important;     /* adjust as desired */
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,.4);
}

/* 5) Safety: never let generic img styles shrink things unexpectedly */
.project-stack img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto;
  display: block;
}

/* 6) Optional: make this section truly full-bleed (edge-to-edge)
      Apply the "Full width" (alignfull) alignment to the Group with class project-stack,
      then this helper ensures it spans the viewport even if the theme content width is narrow. */
.project-stack.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}



/*Font Link Settings*/

.contact-link {
    text-decoration: none;
    color: inherit; 
}

.contact-link:hover {
    color: #0E7131; /* theme green on hover */
    text-decoration: none; 
}



/*Social Media Icon Settings*/
.wp-block-social-links, .wp-block-social-links.has-normal-icon-size {
    font-size: 30px;
}

.footer-social-icons {
    display: flex;
    justify-content: left;  
    gap: 25px;                 /* space between icons */
    margin-top: 20px;
}

.footer-social-icons a {
    color: #0E7131;            /* default yellow-green */
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;     /* remove underline */
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.6); /* dark drop shadow */
}

.footer-social-icons a:hover {
    color: #A9BC44;            /* theme green on hover */
    transform: scale(1.1);     /* subtle pop effect */
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.7); /* stronger shadow on hover */
}


/*Top Bar Settings*/

button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.wp-block-button__link:not(.has-background)
{
	border-radius:8px !important;
}

/* === Top Bar Buttons Container === */
.top-bar-buttons {
    display: flex;
    align-items: center;        /* vertical alignment */
    justify-content: flex-end;  /* right align */
    gap: 25px;                  /* space between buttons */
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .top-bar-buttons {
        justify-content: center !important;
        text-align: center !important;
		background-color:#f7f8f9;
    }
}

/* === Shared Button Styling (Call + Schedule) === */
.top-bar-buttons a.tb_telephone,
.top-bar-buttons a.button.schedule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    padding: 12px 25px;          /* consistent padding */
    min-height: 48px;            /* same button height */
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.2;
}

/* === Call Button (Transparent Background) === */
a.tb_telephone {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid transparent; /* keeps consistent height */
}

a.tb_telephone:hover {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* === White Telephone Handset Icon (now Yellow-Green) === */
a.tb_telephone::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f095"; /* phone handset */
    font-size: 22px;
    color: #fff;  /* handset accent color */
    margin-right: 8px;
    line-height: 1;
    display: inline-block;
    transform: scaleX(-1); /* flip horizontally */
}

/* === Schedule Button === */
a.button.schedule {
    background-color: #A9BC44 !important;
    color: #ffffff !important;
}

a.button.schedule:hover {
    background-color: #0E7131 !important; /* theme green */
    color: #ffffff !important;
}

/*Sticky Navigation Settings*/

.show-on-sticky,
.navigation-stick .hide-on-sticky {
    display: none !important;
}

.navigation-stick .show-on-sticky {
    display: block !important;
}


/*Button Settings*/
.misc-button {
  color: #ffffff !important;
  background-color: #A9BC44 !important;
  font-family: Montserrat, sans-serif !important;
  font-weight: 500;
  font-size: 18px;
  padding: 10px 20px !important;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 8px;
}

.misc-button:hover {
  background-color: #0e7131 !important;
}

.misc-button-space 
{
  display: inline-flex;      /* ensures buttons stay on one line */
  flex-wrap: wrap;           /* allows wrapping on small screens */
  gap: 15px !important;                 /* sets 15px spacing between buttons */
}

.footer-bar-buttons .button.contact {
	
  margin-right: 20px;
}

@media (max-width: 768px) {
	.footer-bar-buttons {
		text-align:center !important;
	}
}


/*Back to Top Button Settings*/

body .generate-back-to-top, body .generate-back-to-top:visited {
    left: 30px;
    bottom: 30px;
    right: unset;
}

.generate-back-to-top,
.generate-back-to-top:visited {
    background-color: #A9BC44 !important; /* rgba or hex */
    color: #FFFFFF;
}

/* the button when you hover/click it */

.generate-back-to-top:hover,
.generate-back-to-top:focus {
    background-color: #0e7131 !important; /* rgba or hex */
    color: #FFFFFF;
}


/*Image Settings*/

.image-overlay-effect {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.image-overlay-effect img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.image-overlay-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 113, 49, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.image-overlay-effect:hover::after {
  opacity: 1;
}


/*Mobile Menu - Settings*/



/*Mobile Logo & Navigation - Settings*/

@media (max-width: 768px) {

  /* ---------- 1. Header Structure ---------- */
  #mobile-header,
  .site-header .inside-header,
  .main-navigation .inside-navigation,
  .mobile-header .inside-header,
  .mobile-header-navigation .inside-navigation {
    display: flex;
    justify-content: space-between; /* logo left, burger right */
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    height: 90px;
  }

  /* ---------- 2. Logo Sizing ---------- */
  .site-logo img,
  .navigation-branding img,
  .mobile-header-logo img {
    max-width: 400px; /* adjust as needed (100–140px typical) */
    height: auto;
  }

  #mobile-header .site-logo.mobile-header-logo {
    position: static;
    transform: none;
    margin-left: 0;
  }

  #mobile-header .site-logo.mobile-header-logo img {
    height: 90px;
  }

  /* ---------- 3. Hamburger / Menu Toggle ---------- */
  .main-navigation .menu-toggle,
  #mobile-header button.menu-toggle,
  #mobile-header .menu-bar-item > a {
    margin-left: auto;
    order: 2;
    line-height: 90px;
    transform: scale(2);              /* doubles overall icon size */
    transform-origin: center right;   /* keep alignment consistent */
  }

  /* optional fine-tune: if toggle shifts alignment too far right */
  #mobile-header .menu-toggle {
    margin-right: 6px;
  }

  /* ---------- 4. Branding Alignment ---------- */
  .site-branding,
  .site-logo,
  .navigation-branding {
    order: 1;
  }

  /* ---------- 5. Mobile Navigation Dropdown ---------- */
  /* Entire mobile menu panel background */
  .main-navigation.toggled,
  .mobile-header-navigation.toggled,
  .main-navigation .main-nav ul,
  .main-navigation .main-nav ul ul,
  .main-navigation .main-nav > ul {
    background-color: #78ac69 !important;
  }

  /* Mobile menu links */
  .main-navigation .main-nav ul li a {
    color: #fff !important;
    padding: 12px 16px;
  }

  /* Hover or active link state */
  .main-navigation .main-nav ul li a:hover,
  .main-navigation .main-nav ul li.current-menu-item > a {
    background-color: rgba(0,0,0,0.1);
  }

  /* ---------- 6. Sub-menu (nested) spacing ---------- */
  .main-navigation .main-nav ul ul li a {
    padding-top: 6px !important;
    padding-bottom: 6px !important;  /* tighter vertical spacing */
  }

  /* optional: indent sub-menus slightly */
  .main-navigation .main-nav ul ul li {
    padding-left: 12px;
  }

  /* ---------- 7. Optional Search Alignment ---------- */
  .navigation-search {
    border-radius: 6px;
    overflow: hidden;
    max-width: calc(100% - 40px);
    top: 20px;
  }
}


/* ====== MOBILE NAVIGATION MENU FIX  ====== */
@media (max-width: 768px) {

  /* 1) Ensure mobile nav sits above page content on all pages */
  .site-header,
  #mobile-header,
  .main-navigation,
  .mobile-header-navigation {
    position: relative;
    z-index: 10000; /* above sliders/hero blocks */
  }

  /* Create a higher stacking context for the actual dropdown list */
  .main-navigation.toggled .main-nav,
  .mobile-header-navigation.toggled .main-nav {
    position: relative;
    z-index: 10001;
  }

  /* 2) Force visibility when toggled (beats theme/other page CSS) */
  .main-navigation.toggled .main-nav > ul,
  .mobile-header-navigation.toggled .main-nav > ul {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* 3) Prevent clipping by parents (Element/GP wrappers sometimes hide overflow) */
  header,
  .site-header,
  .inside-header,
  .main-navigation,
  .mobile-header-navigation {
    overflow: visible !important;
  }

  /* 4) Keep your background styling but scope it to the open state only */
  .main-navigation.toggled .main-nav > ul,
  .mobile-header-navigation.toggled .main-nav > ul,
  .main-navigation.toggled .main-nav ul ul {
    background-color: #78ac69 !important;
  }

  /* 5) Optional: slightly reduce the scaled toggle to avoid odd hit-areas */
  #mobile-header .menu-toggle {
    transform: scale(1.75); /* was 2; keeps big tap target, fewer layout quirks */
    transform-origin: center right;
  }
}




/* ==========================================================================
   JAMS CTA Section - Misc.
   ========================================================================== */


/* =========================
   0) THEME TOKENS / GLOBALS
   ========================= */
:root {
  --jams-font: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --jams-color-text-on-dark: #ffffff;
  --jams-color-accent: #A9BC44; /* button base */
  --jams-color-accent-hover: #0e7131; /* button hover */
  --jams-cta-max: 1200px;
  --jams-cta-radius: 8px;
  --jams-cta-gap: 18px;
  --jams-cta-pad-y: 50px;
  --jams-cta-pad-x: 20px;

  /* Background image token (can be overridden per section) */
  --jams-cta-bg: none;
}

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


/* =========================
   1) BASE CTA WRAPPER
   ========================= */
.jams-cta-bar {
  position: relative;
  width: 100%;
  color: var(--jams-color-text-on-dark);
  font-family: var(--jams-font);
  overflow: hidden;
  background:
    var(--jams-cta-bg, none)
    center bottom / cover no-repeat;
}

/* Overlay (variant-specific gradients defined below) */
.jams-cta-bar .jams-cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Content container */
.jams-cta-bar .jams-cta-content {
  position: relative;
  z-index: 2;
  max-width: var(--jams-cta-max);
  margin: 0 auto;
  padding: var(--jams-cta-pad-y) var(--jams-cta-pad-x);
  display: flex;
  gap: var(--jams-cta-gap);
}

/* Headline + subtext */
.jams-cta-bar .jams-cta-text h2 {
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  margin: 0;
}

.jams-cta-bar .jams-cta-text .services-line,
.jams-cta-bar .services-line {
  margin-top: 10px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5em;
  opacity: 0.96;
  max-width: 850px;
}

/* Actions row */
.jams-cta-bar .jams-cta-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons (shared) */
.jams-cta-bar .jams-cta-btn {
  color: #ffffff !important;
  background-color: var(--jams-color-accent) !important;
  font-family: var(--jams-font) !important;
  font-weight: 500;
  font-size: 18px;
  padding: 10px 20px !important;
  border: none;
  border-radius: var(--jams-cta-radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.jams-cta-bar .jams-cta-btn:hover,
.jams-cta-bar .jams-cta-btn:focus-visible {
  background-color: var(--jams-color-accent-hover) !important;
  color: #ffffff !important;
}

/* Accessible focus */
.jams-cta-bar .jams-cta-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* === PHONE ICON (Font Awesome, Flipped) === */
.jams-cta-bar .jams-cta-btn .phone-icon {
  color: #ffffff !important;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  transform: scaleX(-1); /* <-- horizontally flips the phone icon */
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Subtle enlargement on hover */
.jams-cta-bar .jams-cta-btn:hover .phone-icon {
  transform: scaleX(-1) scale(1.15); /* keep flipped orientation on hover */
  color: #ffffff;
}

/* =========================
   2) VARIANT: STANDARD (LEFT-TEXT)
   ========================= */
.jams-cta-bar {
  --jams-cta-bg: url('https://jamsohio.com/wp-content/uploads/2025/10/Jams-Property-Preservation-Dayton-Ohio-Contact-Us.jpg');
}

.jams-cta-bar .jams-cta-content {
  justify-content: space-between;
  align-items: center;
  text-align: left;
  flex-wrap: wrap;
}

/* Subtle dark overlay */
.jams-cta-bar .jams-cta-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.4) 45%,
    rgba(0,0,0,0.25) 100%
  );
}


/* =========================
   3) VARIANT: CENTERED
   ========================= */
.jams-cta-bar.jams-cta-centered {
  --jams-cta-bg: url('https://jamsohio.com/wp-content/uploads/2025/10/Jams-Property-Preservation-Dayton-Ohio-Contact-Us-2.jpg');
}

.jams-cta-bar.jams-cta-centered .jams-cta-content {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Stronger green overlay */
.jams-cta-bar.jams-cta-centered .jams-cta-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(14, 113, 49, 0.78) 40%,
    rgba(14, 113, 49, 0.55) 80%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.jams-cta-bar.jams-cta-centered .jams-cta-text h2 {
  font-weight: 700;
  font-size: 30px;
  margin: 0;
  line-height: 1.2;
}


/* =========================
   4) RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .jams-cta-bar .jams-cta-content {
    flex-direction: column;
    text-align: center;
    padding: 60px var(--jams-cta-pad-x);
  }

  .jams-cta-bar .jams-cta-actions {
    justify-content: center;
  }

  .jams-cta-bar .jams-cta-text h2 {
    font-size: 26px;
  }

  .jams-cta-bar .services-line,
  .jams-cta-bar .jams-cta-text .services-line {
    font-size: 16px;
  }
}




/* ==========================================================================
   JAMS CTA Section - Services
   ========================================================================== */
.jams-services-cta {
  --jams-green: #0e7131;
  --jams-accent: #A9BC44;
  --jams-text: #ffffff;
  --pad-y: 48px;
  --pad-x: 20px;

  position: relative;
  color: var(--jams-text);
  background: linear-gradient(135deg, var(--jams-green) 0%, var(--jams-accent) 100%);
  padding: var(--pad-y) var(--pad-x);
}

.jams-services-cta__inner {
  max-width: 1100px;
  margin: 0 auto;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.jams-services-cta h2 {
  margin: 0 0 18px 0;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
}

/* Table styling */
.jams-services-cta__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden; /* rounds table corners */
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* Two columns on desktop, one on mobile handled by making cells block at small screens */
.jams-services-cta__table td {
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-right: 1px solid rgba(255,255,255,0.08);
}

/* Remove borders on last row/col */
.jams-services-cta__table tr:last-child td { border-bottom: 0; }
.jams-services-cta__table td:last-child { border-right: 0; }

/* Make each service link fill the cell (clickable row feel) */
.jams-services-cta__table a {
  display: block;
  width: 100%;
  padding: 16px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.25;
  transition: background-color 0.25s ease, transform 0.06s ease;
}

/* Hover/active states */
.jams-services-cta__table a:hover {
  background: rgba(0,0,0,0.14);
}
.jams-services-cta__table a:active {
  transform: translateY(1px);
}

/* Responsive: stack into one column on small screens */
@media (max-width: 768px) {
  .jams-services-cta {
    --pad-y: 36px;
  }
  .jams-services-cta__table tr {
    display: block;
  }
  .jams-services-cta__table td {
    display: block;
    border-right: 0; /* no vertical divider in single column */
  }
}

/* Optional: subtle focus ring for accessibility */
.jams-services-cta__table a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px; /* stays within the cell */
}




/* ===== Schedule Service - JAMS Modal ===== */

:root {
  --jams-green: #0e7131;
  --jams-white: #ffffff;
  --jams-radius: 14px;
  --jams-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

/* Prevent background scroll and ensure modal sits above theme layers */
body.jams-modal-open { overflow: hidden; position: relative; }
/* If your theme header/nav has an aggressive z-index, lower it while modal is open */
body.jams-modal-open header,
body.jams-modal-open .site-header,
body.jams-modal-open .main-navigation,
body.jams-modal-open .mobile-header {
  z-index: 1 !important;
}

/* Cover the viewport but hidden by default */
.jams-modal {
  position: fixed;
  inset: 0;
  display: none; /* toggled via .is-open */
  /* Use an ultra-high z-index to beat theme headers/menus on mobile */
  z-index: 9999999;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  /* Create a new stacking context to keep children predictable */
  isolation: isolate;
}
.jams-modal.is-open { display: block; }

/* Dim background (under dialog) */
.jams-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  z-index: 100; /* lower than dialog */
}

/* Centered dialog with internal scroll; ensure it stacks above overlay/nav */
.jams-modal__dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);     /* centers it */
  width: 44vw;                           /* desktop width */
  max-width: 600px;                      /* cap on large screens */
  min-width: 320px;
  max-height: 90vh;                      /* allow internal scroll */
  overflow: auto;                        /* scroll inside the popup */
  -webkit-overflow-scrolling: touch;     /* smooth iOS scrolling */
  background: var(--jams-green);
  color: var(--jams-white);
  border-radius: var(--jams-radius);
  box-shadow: var(--jams-shadow);
  padding: 28px 26px;
  z-index: 101;                          /* above overlay */
  will-change: transform;                /* helps mobile GPU compositing */
}

/* Close button — NO background box, just a big X (50px) */
.jams-modal__close {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  color: var(--jams-white);
  font-size: 50px;                       /* X size exactly 50px */
  line-height: 1;
  cursor: pointer;
  z-index: 102;                          /* above dialog contents */
  padding: 0;
  display: inline-block;
  transition: transform 0.15s ease, color 0.25s ease;
}
.jams-modal__close:hover,
.jams-modal__close:focus-visible {
  color: #A9BC44;                        /* optional hover */
  transform: scale(1.08);
  outline: none;
}

/* Headings */
.jams-modal h3 {
  margin: 0 0 8px 0;
  font-size: 30px;
  font-weight: 700;
}

/* Body text (Open Sans) */
.jams-modal p,
.jams-modal__intro,
.jams-modal .wpcf7-form p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--jams-white);
  margin-bottom: 18px;
  opacity: 0.95;
}

.jams-modal__phone { color: var(--jams-white); text-decoration: underline; }
.jams-modal__phone:hover { text-decoration: none; }

/* —— CF7 Field Styling —— */
.jams-modal label,
.jams-modal .wpcf7-form label {
  display: block;
  text-align: left;                      /* left-justify field titles */
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--jams-white);
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Inputs, selects, textareas (white fields) */
.jams-modal input[type="text"],
.jams-modal input[type="email"],
.jams-modal input[type="tel"],
.jams-modal input[type="date"],
.jams-modal select,
.jams-modal textarea {
  width: 100%;
  background: #fff;
  color: #222;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* Improve date input UX */
.jams-modal input[type="date"] {
  -webkit-appearance: auto;
  appearance: auto;
}
.jams-modal input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

/* Message box height */
.jams-modal textarea {
  min-height: 40px;                      /* compact on mobile */
  resize: vertical;
}

.jams-modal input:focus,
.jams-modal select:focus,
.jams-modal textarea:focus {
  border-color: #cfe7d9;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}

/* ---- Submit row: center button & spinner together ---- */
.jams-modal .wpcf7 .wpcf7-submit-row,
.jams-modal .wpcf7 .wpcf7-submit-row,
.jams-modal .wpcf7 .wpcf7-submit-row p {
  display: flex;
  justify-content: center;               /* centers button AND spinner */
  align-items: center;
  gap: 10px;                             /* spacing between button and spinner */
  margin-top: 12px;
  text-align: center;
}

/* CF7 spinner: keep inline so it doesn't offset centering */
.jams-modal .wpcf7-spinner {
  position: static;                      /* no absolute shift */
  margin: 0;
}

/* Submit button */
.jams-modal .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #A9BC44;
  color: #fff;
  font-weight: 600;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.08s ease;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.jams-modal .wpcf7-submit:hover,
.jams-modal .wpcf7-submit:focus-visible {
  background: #0e7131;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.jams-modal .wpcf7-submit:active { transform: translateY(1px); }

/* CF7 messages */
.jams-modal .wpcf7 form .wpcf7-response-output {
  margin-top: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

/* Responsive */
@media (max-width: 900px) {
  .jams-modal__dialog { width: 80vw; max-width: 720px; }
}
@media (max-width: 720px) {
  .jams-modal__dialog {
    width: 92vw;
    max-width: 92vw;
    padding: 22px 18px;
  }
}




/* ===== JAMS - Contact Us Form ===== */
/* === JAMS Contact Us Form (Single Field per Line) === */
.jams-contact {
  --jams-green: #0e7131;
  --jams-accent: #A9BC44;
  --jams-white: #ffffff;
  --jams-radius: 10px;
  --jams-shadow: 0 12px 30px rgba(0,0,0,0.18);
  
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  max-width: 700px;
  margin: 0 auto;
}

/* Half the vertical spacing between fields */
.jams-contact p.field {
  margin-bottom: 9px;
}

/* Hide labels visually (placeholders used instead) */
.jams-contact label {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  border: 0;
}

/* Input and Textarea Fields */
.jams-contact input[type="text"],
.jams-contact input[type="email"],
.jams-contact input[type="tel"],
.jams-contact textarea {
  width: 100%;
  background: #fff;
  color: #222;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--jams-radius);
  padding: 12px 14px;
  font: 16px 'Open Sans', Arial, sans-serif;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Message box settings*/
.jams-contact textarea {
  min-height: 275px;  
  max-height: 325px; 
  resize: vertical;
}

/* Focus styles */
.jams-contact input:focus,
.jams-contact textarea:focus {
  border-color: #cfe7d9;
  box-shadow: 0 0 0 3px rgba(14,113,49,0.12);
}

/* Placeholder styling */
.jams-contact ::placeholder {
  color: #666;
  opacity: 1;
  font-weight: 600;
}

/* Submit Button */
.jams-contact .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--jams-accent);
  color: #fff;
  font-weight: 600;
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.08s ease;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow: var(--jams-shadow);
}

.jams-contact .wpcf7-submit:hover,
.jams-contact .wpcf7-submit:focus-visible {
  background: var(--jams-green);
  outline: 0px solid #fff;
  outline-offset: 0px;
}

.jams-contact .wpcf7-submit:active {
  transform: translateY(1px);
}

/* Spinner beside button */
.jams-contact .wpcf7-spinner {
  position: static;
  margin-left: 0px !important;
  vertical-align: middle;
	margin: 0px 
}

/* Response Message */
.jams-contact .wpcf7 form .wpcf7-response-output {
  margin-top: 14px;
  border-radius: 8px;
  background: rgba(14,113,49,0.08);
  color: #0e7131;
  border: 1px solid rgba(14,113,49,0.25);
  text-align: center;
  font-weight: 600;
}

/* Center submit button */
.jams-contact .submit-row {
  text-align: center;
  margin-top: 10px;
}



/*Google Map Settings*/
.map-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}



/* === JAMS Before/After Gallery === */

.jams-baa { margin: 0 0 2rem; }

.jams-baa h2 {
  margin-bottom: 1rem;
  text-align: center;
}

/* Grid: center items on all viewports */
.jams-baa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  justify-items: center;       /* centers cards in their columns */
}
@media (max-width: 900px) {
  .jams-baa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .jams-baa-grid { grid-template-columns: 1fr; }
}

/* Card width: center + control max width for perceived size */
.jams-baa-card {
  width: 100%;
  max-width: 420px;            /* base size on desktop/tablet */
}
@media (max-width: 600px) {
  .jams-baa-card {
    max-width: 630px;          /* 1.5x larger on mobile */
  }
}

/* Image (square corners, centered by block + max-width logic above) */
.jams-baa-card figure {
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
}
.jams-baa-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  transition: opacity 0.3s ease;
		  margin-left:auto !important;
	margin-right:auto !important;
}

/* Controls: centered buttons */
.jams-baa-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
}
.jams-baa-controls .misc-button-space {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 15px !important;
}

/* Active button */
.jams-baa-btn.misc-button[aria-pressed="true"] {
  background-color: #0e7131 !important;
  box-shadow: 0 0 0 2px #0e7131 inset;
}
