/*
Theme Name: Hyperdrive Child
Template: hyperdrive
Author: Striventa
Description: Hyperdrive is the last theme you'll ever need. Welcome to the future.
Version: 1.1.0
Requires at least: 6.1
Tested up to: 6.2.2
Requires PHP: 7.4
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hyperdrive
*/

/* Misc */
:root {
  --drc--preset--header--height: 132px;
}
.svg--is-display-block svg { display: block; }

body .wp-site-blocks {
 overflow-x: visible;
}

.wp-block-cover .wp-block-cover__inner-container .wp-block-spacer + h1,
.wp-block-cover .wp-block-cover__inner-container .wp-block-spacer + .wp-block-group,
.wp-block-cover .wp-block-cover__inner-container .wp-block-spacer + .wp-block-columns{
  margin-top: 0 !important;
}
.hide-on-mobile {
	display: none !important;
}
@media (min-width:768px){
	.hide-on-mobile { display: block !important; }
}

.hide-on-tablet {
	display: block;
}
@media (min-width:600px){
	.hide-on-tablet { display: none !important; }
}

.hide-on-desktop {
	display: block;
}
@media (min-width:768px){
	.hide-on-desktop { display: none !important; }
}

/* Subtitle */
.wp-block-heading.is-style-subtitle {
  color: var(--wp--preset--color--tertiary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Text Accent */
.hyperdrive-text-accent {
  text-decoration: underline solid var(--wp--preset--color--primary) 3px;
  text-underline-offset: 5px;
}

/* Homepage Hero */
.wp-block-cover.hero-homepage h1 {
  font-size: clamp(2rem, 5vw + 0.75rem, 3.75rem);
}

/* Insurance Grid */
.wp-block-group.insurance-grid.is-layout-grid figure:nth-child(1),
.wp-block-group.insurance-grid.is-layout-grid figure:nth-child(2) {
  grid-column: span 2;
}
.wp-block-group.insurance-grid.is-layout-grid figure:nth-child(3) {
  grid-column: 2 / span 2;
  grid-row: 2;
}

/* Accommodations Grid */
.wp-block-gallery.accommodations-grid figure.wp-block-image {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}
.wp-block-gallery.accommodations-grid figure.wp-block-image img {
  transition: transform 0.3s;
}
.wp-block-gallery.accommodations-grid figure.wp-block-image:hover img {
  transform: scale(1.1);
}
.wp-block-gallery.accommodations-grid figure.wp-block-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  background: rgba(255,255,255,0.8);
  color: var(--wp--preset--color--secondary);
  font-size: clamp(1.25rem, 0.714vw + 1.071rem, 1.5rem);
  font-weight: 400;
  line-height: 1;
}
.wp-block-gallery.has-nested-images .wp-block-image a[data-fancybox]+figcaption {
  display: block !important;
}


/* Blog Styles */
.cat-top-bar {
  row-gap: 1em !important;
}
.cat-top-bar .wp-block-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em 3em;
  justify-content: flex-start;
  align-items: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.cat-top-bar .wp-block-categories-list li.cat-item:is(.cat-item-1, .cat-item-22), .cat-top-bar .wp-block-categories-dropdown option.level-0:last-child { display: none; }
@media (max-width: 600px) {
  .cat-top-bar .wp-block-categories-list li.cat-item, .cat-top-bar > p { display: block; white-space: nowrap; text-align: center; }
}
.cat-top-bar .wp-block-categories-list li.cat-item { margin: 0; padding: 0; text-align: center; }
.cat-top-bar .wp-block-categories-list li.cat-item > :is(a, span), .cat-top-bar > p > a {
  display: block;
  transition: all 0.2s ease-in-out;
  text-decoration: none !important;
}
.cat-top-bar .wp-block-categories-list li.cat-item.current-cat > :is(a, span), .cat-top-bar > p.current-cat > a {
  color: var(--wp--preset--color--tertiary);
  text-decoration: none;
}
.cat-top-bar .wp-block-categories-list li.cat-item > a:hover, .cat-top-bar > p > a:hover { color: var(--wp--preset--color--tertiary); text-decoration: none !important; }
.cat-top-bar .wp-block-categories-dropdown select {
	border-color: var(--wp--preset--color--tertiary);
  color: var(--wp--preset--color--black);
  appearance: none;
  padding-right: 50px;
  background-image: linear-gradient(45deg, transparent 50%, var(--wp--preset--color--tertiary) 50%), linear-gradient(135deg, var(--wp--preset--color--tertiary) 50%, transparent 50%), linear-gradient(to right, var(--wp--preset--color--tertiary), var(--wp--preset--color--tertiary));
  background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), calc(100% - 2.5em) 0.5em;
  background-size: 5px 5px, 5px 5px, 1px 1.5em;
  background-repeat: no-repeat;
}



/* Gravity Forms */
.gform_wrapper.gform-theme--foundation { margin-top: 0 !important; }
.gform_wrapper.gform-theme--foundation .gform_required_legend { display: none; }
.gform_wrapper.gform-theme--foundation .gform_fields { row-gap: var(--wp--preset--spacing--small) }
.gform_wrapper.gform-theme--foundation .gform_footer .gform_button { font-weight: 700 !important; text-transform: uppercase; transition: all 0.3s ease-in-out; }
.gform_wrapper.gform-theme--foundation .gform_footer .gform_button:hover { background-color: var(--wp--preset--color--secondary) !important; color: var(--wp--preset--color--white) !important; transform: translateY(-3px); }

.gform_wrapper.gform-theme--foundation .gform_fields .ginput_container_consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.gform_wrapper.gform-theme--foundation .gform_fields .ginput_container_consent label {
  font-size: 12px;
  margin-left: 8px;
}


.has-secondary-background-color .gform_wrapper.gform-theme--foundation .gform_fields input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"]),
.has-secondary-background-color .gform_wrapper.gform-theme--foundation .gform_fields textarea,
.has-secondary-background-color .gform_wrapper.gform-theme--foundation .gform_fields select {
  background-color: var(--wp--preset--color--secondary) !important;
  border-color: var(--wp--preset--color--tertiary) !important;
  color: var(--wp--preset--color--white) !important;
}


/* Footer Styles */
footer.site-footer .legitscript-badge { width: 110px; }
footer.site-footer .legitscript-badge img { width: 100%; max-width: 110px; height: auto; }

@media (max-width:600px){
	footer.site-footer .footer-top-row { justify-content: center; }
	footer.site-footer .footer-top-row > .wp-block-image { order: 0; width: 100%; text-align: center; }
	footer.site-footer .footer-top-row > .wp-block-social-links { order: 1; }
	footer.site-footer .footer-top-row > .legitscript-badge { order: 2; width: 100%; text-align: center; }
}