/*
Theme Name: GW Theme
Theme URI: https://www.gatewaywestmarketing.com/
Author: Sean Yeaney
Description: A custom theme for client sites
Version: 1.0
*/
html {
  scroll-behavior: smooth;
}
h1 {
  font-size: clamp(45px, 5vw, 65px);
}
p {
  font-size: clamp(17px, 2.5vw, 20px);
}
a {
  color: var(--wp--preset--color--dark);
  transition: color 0.2s ease;
}
a:hover,
a:focus,
a:active {
  text-decoration: none;
  /* color: color-mix(in srgb, var(--gw-color-link) 80%, black 20%);
  filter: brightness(0.8); */
}
h1,
h2,
h3 {
  color: var(--gw-color-heading);
}

.google-reviews-grid-wrapper {
  padding: 1rem;
}
.google-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.google-review-card {
  background: #fff;
  border: 1px solid #ddd;
  color: #000;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease-in-out;
}
.scroll-to-top {
  position: fixed;
  bottom: 80px;
  right: 40px;
  width: 45px;
  height: 45px;
  background-color: var(--wp--preset--color--light);
  color: var(--wp--preset--color--dark);
  text-align: center;
  line-height: 35px;
  border-radius: 50%;
  font-size: 36px;
  cursor: pointer;
  z-index: 999;
  display: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top:hover {
  background-color: var(--wp--preset--color--dark);
  color: var(--wp--preset--color--light);
  transform: scale(1.1);
}

.scroll-to-top i {
  vertical-align: middle;
}
.footer svg {
  height: 30px;
  width: 30px;
}
.fc-daygrid-event {
  white-space: normal !important;
  align-items: normal !important;
}
.fc a {
  color: unset;
}
.hero-heading {
  font-size: clamp(1rem, 7vw, 100px);
}
.clamp-lg {
  font-size: clamp(1rem, 6vw, 90px) !important;
}
.clamp-md {
  font-size: clamp(0.9rem, 4vw, 60px) !important;
}
.clamp-sm {
  font-size: clamp(0.85rem, 2vw, 25px) !important;
}
.clamp-body {
  font-size: clamp(0.7rem, 1vw, 18px);
}
.hero-subheading {
  font-size: clamp(0.75rem, 3vw, 2rem);
  font-weight: 400;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--wp--preset--font-family--roboto);
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}
.wp-element-button {
  font-size: clamp(16px, 1vw, 35px) !important;
  padding: 15px 45px !important;
}
.rad-font {
  font-family: var(--wp--preset--font-family--rajdhani);
}
.thin-heading {
  font-weight: 100;
  font-size: clamp(30px, 3vw, 67px); /* 50px is the min size, 67px max size */
}
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.mt-3 {
  margin-top: 1rem;
}
.page-header {
  margin-bottom: 20px;
  position: absolute;
  z-index: 999;
  padding: 40px;
}

.gw-white-button a:hover,
.gw-blue-button a:hover {
  background-color: var(--wp--preset--color--light) !important;
  color: #fff !important;
  border: 2px solid var(--wp--preset--color--light) !important;
  transition: all 500ms ease;
}
.gw-blue-button a {
  border: 2px solid var(--wp--preset--color--dark);
}
.gw-ghost-button a:hover {
  background: white;
  color: #1b4171;
  text-decoration: none;
  border-color: white;
  transition: all 500ms ease;
}
.gw-ghost-button a {
  background: transparent;
  transition: all 500ms ease;
}
.highlight {
  background-color: var(--wp--preset--color--light);
  color: #fff;
  padding: 0 5px;
}
.padded-block {
  padding: 100px;
}
.no-gap:where(.wp-block-columns.is-layout-flex) {
  gap: 0;
  margin-bottom: 0;
}
.no-gap figure {
  margin-bottom: 0 !important;
}
/* Make the two-column layout stretch equally */
.wp-block-columns.image-text-row {
  align-items: stretch;
}

/* Force the image container to fill the height of the text side */
.wp-block-column .image-fill {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.wp-block-column .image-fill img {
  object-fit: cover;
  object-position: left;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px; /* Adjust the gap between items */
  align-items: stretch; /* ensure all grid items stretch */
}
.services-grid a:where(:not(.wp-element-button)),
.services-grid a:where(:not(.wp-element-button)) * {
  text-decoration: none !important;
}
.service-card {
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 500ms ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* makes sure the card fills the grid area */
}

.service-card img {
  max-width: 100%;
  height: auto;
}
.service-card:hover {
  background-color: var(--wp--preset--color--dark);
  color: #fff;
  transition: all 500ms ease;
}
.service-card-image {
  background-color: transparent;
}
.service-card-header {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  transition: all 500ms ease;
}

.service-icon {
  width: clamp(90px, 15vw, 100px);
  height: clamp(90px, 15vw, 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--wp--preset--color--light);
  border-radius: 50%;
  margin-inline: auto;
  margin-top: -99px;
  box-shadow: 2px 1px 8px #999;
  position: relative;
  z-index: 999;
  transition: all 500ms ease;
}
.service-icon figure {
  width: 60%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 500ms ease;
}
.service-icon figure img {
  padding-top: 15px;
}
.service-card:hover .service-icon figure {
  filter: unset;
  transition: all 500ms ease;
}
.service-card:hover .service-icon {
  background-color: white;
  transition: all 500ms ease;
}
.service-card-image img {
  width: 100%;
}
.service-card-blurb {
  font-size: 0.9rem;
  color: #555;
  padding: 50px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.service-card-blurb::after {
  content: "";
  flex-grow: 1;
}
.service-card-blurb h3 {
  margin: 50px auto 20px;
  font-weight: 100;
  text-transform: uppercase;
  font-size: clamp(22px, 6vw, 28px);
  transition: all 500ms ease;
  line-height: 1;
}
.service-card:hover .service-card-blurb h3 {
  color: #fff;
  font-weight: 600;
  transition: all 300ms ease;
}
.service-card-blurb p {
  text-align: center;
  transition: all 300ms ease;
}
.service-card:hover .service-card-blurb p {
  color: #fff;
  transition: all 300ms ease;
}
/* NAVIGATION */
/* === Global Header Styles === */
.page-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: transparent; /* Optional, in case you want overlay look */
  flex-wrap: wrap;
}

/* Logo block */
.site-branding {
  flex: 1 1 auto;
}
.site-title {
  margin: 0;
}
.logo-main {
  max-width: 100%;
}
/* Nav bar default (desktop) */
.site-navigation {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  align-items: center;
  flex: 1 1 auto;
}

/* Menu toggle hidden on desktop */
.menu-toggle,
.nav-close {
  display: none;
}
.main-menu {
  list-style: none;
  display: inline-flex;
}
.main-menu li {
  margin: 10px;
}
.main-menu a {
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  transition: all 500ms ease;
}
.main-menu a:hover,
.main-menu a:focus {
  color: #f7cec6;
  transition: all 500ms ease;
}
/* Make the header flow normally and span full width */
.page-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
}

/* Ensure nav itself is full width and flex container */
.page-header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* force one line */
}
.page-header .navbar-brand,
.page-header .navbar-toggler {
  flex: 0 0 auto;
}
/* Right-align the menu using bootstrap flex utilities */
.page-header .navbar-collapse {
  justify-content: flex-end !important;
  background: transparent !important;
}

/* White hamburger icon (bootstrap doesn’t inject it without navbar-dark/light) */
.page-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=UTF8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'>\<path stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/>\</svg>") !important;
}

/* Remove default toggler border */
.page-header .navbar-toggler {
  border: none !important;
}

/* Nav-link styling (your own colors will apply) */
.navbar-nav .nav-link {
  font-size: clamp(16px, 3vw, 22px);
  padding: 0.5rem 1rem;
}
.page-header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.page-header .navbar-nav {
  flex-wrap: nowrap; /* never wrap */
}
.page-header .navbar-nav .nav-item {
  white-space: nowrap; /* keep text on one line */
}
.back-to-top {
  font-family: Arial, sans-serif; /* or whatever's reliable */
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--wp--preset--color--light);
  color: #fff;
  border: none;
  padding: 2px 18px 10px;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  transition: all 500ms ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: var(--wp--preset--color--dark);
  transition: all 500ms ease;
}
.footer {
  background-color: var(--wp--preset--color--light);
  text-align: center;
  padding: 30px;
}
.copyright {
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
}
.blog .top-section {
  background-color: var(--wp--preset--color--dark);
  height: 175px;
}
.social-links svg {
  height: 30px;
  width: 30px;
  fill: #fff;
  transition: all 500ms ease;
}
.social-links svg:hover,
.social-links svg:focus {
  fill: #ccc;
  transition: all 500ms ease;
}
.callout-text {
  text-align: right;
}
.wp-block-button a:hover {
  text-decoration: none;
}
.footer-nav {
  margin: auto;
}
/* === Mobile Styles === */
@media (max-width: 768px) {
  .home-page-hero {
    min-height: 61vh !important;
  }
  .page-header {
    flex-direction: column;
    align-items: center;
  }

  .site-branding,
  .site-navigation {
    width: 100%;
    text-align: center;
  }
  .site-branding img {
    margin: auto;
    max-width: 200px;
    height: auto;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
    z-index: 0;
    color: #fff;
    margin-top: 15px;
  }

  .site-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    color: black;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }
  .site-navigation a {
    color: #000;
  }
  .site-navigation.active {
    transform: translateY(0);
  }

  .main-menu {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: inline-block;
  }

  .main-menu li {
    margin: 5px 0;
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
  }
  .padded-block {
    padding: 15px;
  }
  .callout-text {
    text-align: center;
  }
}
body.error404 {
  background: #f4f1ec no-repeat center bottom;
  background-size: contain;
  color: #3e2d18;
  font-family: "Georgia", serif;
  text-align: center;
}

.wildwest-404 h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.wildwest-404 p {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 40px;
}

.wildwest-404 a.button {
  display: inline-block;
  background-color: #3e2d18;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.wildwest-404 a.button:hover {
  background-color: #6b4c32;
}

.tumbleweed {
  width: 100% !important;
  margin: 0 auto 20px;
  animation: drift 10s infinite linear;
}
.tumbleweed img {
  width: 100%;
}
.gw-scroll-down {
  color: #ccc;
}
.gw-card {
  background-color: #fff;
  box-shadow: 1px 2px 8px #ccc;
  border-radius: 10px;
  padding: 15px;
}
.wp-block-columns.is-layout-flex.small-gap {
  gap: 1em;
  margin-bottom: 1em;
}
.page-header .navbar-brand {
  flex: 0 1 auto; /* can shrink if needed */
  max-width: 50%; /* up from 40% so it’s allowed more room */
}

/* clamp the height between 60px and 120px, scaling with viewport */
.page-header .navbar-brand img.logo-main {
  max-height: clamp(60px, 10vw, 120px) !important;
  width: auto !important;
}

@media (max-width: 1024px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .services-grid > a:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
  }

  .services-grid > a:nth-last-child(1):nth-child(odd) > .service-card {
    width: 100%;
    max-width: 500px; /* match width of other cards if needed */
  }
}

@media (max-width: 768px) {
  .wp-block-column .image-fill {
    height: auto;
    position: static;
  }

  .wp-block-column .image-fill img {
    height: auto;
    width: 100%;
    position: static;
    object-fit: contain;
  }
  p {
    text-align: center;
  }
  .thin-heading {
    text-align: center;
  }
  .wp-block-buttons {
    justify-content: center !important;
  }
  .logo-main {
    max-width: 50%;
  }
  .services-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-header {
    padding: 0;
  }
  .page-header .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #16426bf7 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out;
    z-index: 1001;
  }
  /* 2) Fade it in when .show is applied */
  .page-header .navbar-collapse.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* 3) Stack & center links */
  .page-header .navbar-nav {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .page-header .navbar-nav .nav-link {
    padding: 0;
    font-size: 35px;
    color: #fff;
  }

  /* 4) Keep toggler above the overlay */
  .page-header .navbar-toggler {
    z-index: 1002;
  }

  /* 4) Stack & center your links in the overlay */
  .page-header .navbar-nav {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  /* Keep the toggle above the overlay */
  .page-header .navbar-toggler {
    z-index: 1002;
  }
  .page-header .navbar-toggler-icon {
    transition: transform 0.3s ease, background-image 0.3s ease;
  }

  /* When menu is open, Bootstrap removes the .collapsed class */
  .page-header .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    transform: rotate(180deg); /* optional spin */
    background-image: url("data:image/svg+xml;charset=UTF8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\<line x1='4' y1='4' x2='20' y2='20' stroke='white' stroke-width='2'/>\<line x1='20' y1='4' x2='4'  y2='20' stroke='white' stroke-width='2'/>\</svg>") !important;
  }
  .page-header .navbar-brand img.logo-main {
    /* larger min & max just for mobile: at least 80px tall, up to 150px */
    max-height: clamp(180px, 25vw, 250px) !important;
  }
}
