/* ========================================================================== */
/*  GLOBAL / BASE                                                             */
/* ========================================================================== */

a {
    transition: 0.2s;
}

section {
    padding: 60px;
}

/* ========================================================================== */
/*  COMPONENTS                                                                */
/* ========================================================================== */

/* Buttons */
.wp-block-button__link {
    --btn-bg-hover: color-mix(in oklab, var(--wp--preset--color--brand-accent) 88%, black);
    transition: 0.2s;
}

.wp-block-button__link:hover {
    background-color: var(--btn-bg-hover);
}

/* Fallback if color-mix isn’t supported */
@supports not (background-color: color-mix(in oklab, black, white)) {
    .wp-block-button__link:hover {
        box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .10);
    }
}

/* Navigation */
.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
    transition: 0.2s;
}

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--brand-accent);
}

/* Social Links */
.wp-block-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-block-social-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: var(--wp--preset--color--brand-primary);
    color: white;
    text-decoration: none;
    transition: 0.2s;
    --social-link-bg-hover: color-mix(in oklab, var(--wp--preset--color--brand-primary) 88%, black);
}

.wp-block-social-links li a:hover {
    background: var(--social-link-bg-hover);
}

/* Fallback if color-mix isn’t supported */
@supports not (background-color: color-mix(in oklab, black, white)) {
    .wp-block-social-links li a:hover {
        box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .10);
    }
}

.wp-block-social-links li a svg {
    width: 18px;
    height: 18px;
    display: block;
}

.wp-block-social-links .screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Hero Featured (image frame) */
.hero-featured {
    box-sizing: border-box;
    height: 500px;
    overflow: hidden;
    border-radius: 50px;
    border: 12px solid rgba(242, 242, 242, 0.16);
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    display: block;
}

.hero-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Shared layout for both badges */
.autosweet-hours-badge,
.autosweet-phone-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Make the icon wrapper flex too so the SVG centers nicely */
.autosweet-hours-badge__icon,
.autosweet-phone-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.autosweet-hours-badge__icon-svg,
.autosweet-phone-badge__icon-svg {
    display: block;
}

.autosweet-hours-badge__icon-svg {
    width: 18px;
    height: 18px;
}

.autosweet-phone-badge__icon-svg {
    width: 20px;
    height: 20px;
}

/* Service Domains List */
.autosweet-service-domains {
    list-style: none;
    margin: 0;
    padding: 0;
}

.autosweet-service-domains__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.autosweet-service-domains__icon-svg {
    color: var(--wp--preset--color--brand-accent);
    width: 16px;
    height: 16px;
    display: block;
}

.autosweet-service-domains__label {
    font-weight: 600;
}

/* Contact Info Block */

.autosweet-contact-info {
  display: grid;
  gap: 20px;
  margin-top: 0;
}

.autosweet-contact-info__location-name {
  margin: 0 0 10px 0;
}

.autosweet-contact-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.autosweet-contact-info__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.autosweet-contact-info__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--wp--preset--color--brand-primary);
}

.autosweet-contact-info__label {
  white-space: nowrap;
}

.autosweet-contact-info__value a {
  text-decoration: none;
}

.autosweet-contact-info__address {
  font-style: normal;
  margin: 0;
}


/* ========================================================================== */
/*  FOOTER                                                                    */
/* ========================================================================== */

footer .footer-bottom-bar {
    font-size: 14px;
    padding-left: 0;
}

footer .footer-blurb {
    display: block;
    margin-bottom: 16px;
    font-size: 16px;
}

footer .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0 0 0;
    padding: 0;
    list-style: none;
}

footer .footer-nav li {
    margin: 0;
}

footer .footer-nav a {
    text-decoration: none;
}

footer .services-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0 0 0;
    padding: 0;
    list-style: none;
}

footer .services-nav li {
    margin: 0;
}

footer .services-nav .footer-nav__link {
    display: block;
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border: 0 !important;
    text-decoration: none;
    font-size: 16px;
}

footer .services-nav .footer-nav__link:hover {
    text-decoration: underline;
}

footer .autosweet-credentials-list ul {
    margin: 0;
}

footer #autosweet-website-credit {
    color: var(--wp--preset--color--brand-primary);
}

footer #autosweet-website-credit {
    font-size: 14px;
}

footer #autosweet-website-credit:hover {
    color: var(--wp--preset--color--brand-accent);
}


/* ========================================================================== */
/*  AUTOSWEET BLOCKS                                                          */
/* ========================================================================== */

/* Credentials list */

.autosweet-credentials-list > ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Service Areas */

.autosweet-service-areas ul {
    list-style: none;
    padding-left: 0;
}

.autosweet-service-areas ul li {
    display: flex;
    gap: 10px;
}

.autosweet-service-areas .autosweet-marker {
    fill: currentColor;
}

/* Service Domain */

.autosweet-sd-card{
    border-radius: var(--wp--custom--radius--card);
}

.autosweet-sd-thumb img {
    display: block;
    width: 100%;
    object-fit: cover;
}

/* Featured Brand */

.autosweet-featured-brand .autosweet-featured-brand__inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.autosweet-featured-brand p,
.autosweet-featured-brand h2 {
    margin: 0;
}

.autosweet-featured-brand img.autosweet-featured-brand__hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.featured-brand__logo{
    max-width: 100%;
}

/* Location Contacts */
.autosweet-location-contacts .as-contact {
    margin-bottom: 30px;
}

.autosweet-location-contacts .as-contact__item {
    margin-bottom: 15px;
}

.autosweet-location-contacts .as-contact__item .as-contact__label {
    font-weight: bold;
}

.autosweet-location-contacts .as-contact__item .as-contact__value,
.autosweet-location-contacts .as-contact__item .as-contact__value address {
    font-style: normal;
}

.autosweet-location-contacts .as-contact__item .as-contact__value a {
    transition: 0.2s;
}

.autosweet-location-contacts .as-contact__item .as-contact__value a:hover {
    color: var(--wp--preset--color--brand-accent);
}

/* Featured Brand */
.autosweet-featured-brand .autosweet-featured-brand__title {
    color: white;
}

/* Value Props and Associations Listing */
.autosweet-vpa-items--grid .autosweet-vpa-items__inner {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
}

@media (min-width: 768px) {
    .autosweet-vpa-items--grid .autosweet-vpa-items__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .autosweet-vpa-items--grid .autosweet-vpa-items__inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.autosweet-vpa-items--grid .autosweet-vpa-items__inner .autosweet-vpa-items__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--wp--custom--radius--card);
}

.autosweet-vpa-items--grid .autosweet-vpa-items__inner .autosweet-vpa-items__icon img {
    display: block;
    margin: 0 auto 1rem;
    width: 70px;
    height: auto;
}

.autosweet-vpa-items--grid .autosweet-vpa-items__inner .autosweet-vpa-items__title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.autosweet-vpa-items__featured{
    width: 100%;
    margin-bottom: 35px;
}

.autosweet-vpa-items__featured img{
    width: 100%;
    height: auto;
}

/* Service Action Tabs */

.autosweet-service-actions-tabs {
    margin: 2rem 0;
}

.autosweet-tabs__nav {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid transparent;
    margin-bottom: 1.5rem;
}

.autosweet-tabs__tab {
    appearance: none;
    border: none;
    background: none;
    padding: 0.5rem 0;
    margin: 0;
    font: inherit;
    color: var(--wp--preset--color--brand-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.autosweet-tabs__tab.is-active {
    color: var(--wp--preset--color--brand-secondary);
    border-bottom-color: var(--wp--preset--color--brand-secondary);
}

.autosweet-tabs__tab:focus-visible {
    outline: none;
    border-bottom-color: var(--wp--preset--color--brand-secondary);
}

.autosweet-tabs__panels .autosweet-service-action {
    flex-direction: column;
}

@media (min-width: 768px) {
    .autosweet-tabs__panels .autosweet-service-action {
        flex-direction: row;
    }
}

.autosweet-tabs__panels {
    margin-top: 0.5rem;
}

.autosweet-tabs__panel {
    display: none;
}

.autosweet-tabs__panel.is-active {
    display: block;
}

.autosweet-tabs__panel[hidden] {
    display: none !important;
}

.autosweet-service-actions-tabs .autosweet-service-action .autosweet-service-action__media img {
    max-width: 100%;
}

/* Location Map */

.autosweet-pin {
    background: transparent;
    border: none;
}

.autosweet-pin__inner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--wp--preset--color--brand-accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    position: relative;
}

.autosweet-pin__inner::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
}

/* Hours Block */

.autosweet-hours .hours-list{
    list-style: none;
    padding-left: 0;
}

/* Frequently Asked Questions (FAQ) Block */
.wp-block-autosweet-faqs__item ::marker{
    color: var(--wp--preset--color--brand-accent);
    --faq-marker-hover: color-mix(in oklab, var(--wp--preset--color--brand-accent) 88%, black);
    transition: 0.2s;
}

.wp-block-autosweet-faqs__item:hover ::marker{
    color: var(--faq-marker-hover);
}

.wp-block-autosweet-faqs__item{
    cursor: pointer;
}

.wp-block-autosweet-faqs__item .wp-block-autosweet-faqs__answer{
    margin-left: 18px;
    font-size: 16px;
}


/* ========================================================================== */
/*  ARCHIVE PAGES                                                             */
/* ========================================================================== */

.autosweet-archive-card .autosweet-archive-card__media img {
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

.autosweet-archive-card__details {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}

.autosweet-archive-card__details-summary {
  order: 2;
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.autosweet-archive-card__details-content {
  order: 1;
}

.autosweet-archive-card__details-content p{
    margin-top: 0;
}

.autosweet-archive-card__details-summary::-webkit-details-marker {
  display: none;
}

.autosweet-archive-card__details-toggle {
  display: inline-flex;
  color: var(--wp--preset--color--brand-accent);
  --btn-archive-details-toggle-hover: color-mix(in oklab, var(--wp--preset--color--brand-accent) 88%, black);
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.autosweet-archive-card__details-toggle:hover{
    color: var(--btn-archive-details-toggle-hover);
}

/* Swap labels */
.autosweet-archive-card__details .when-open {
  display: none;
}

.autosweet-archive-card__details[open] .when-open {
  display: inline;
}

.autosweet-archive-card__details[open] .when-closed {
  display: none;
}

/* When open: hide preview excerpt (prevents excerpt + full showing together) */
.autosweet-archive-card__details[open] .autosweet-archive-card__excerpt--preview {
  display: none;
}




/* ========================================================================== */
/*  SERVICE DOMAIN PAGES                                                      */
/* ========================================================================== */

.tax-service-domains .service-domain-image img {
    width: 100%;
}

/* ========================================================================== */
/*  GRAVITY FORMS                                                             */
/* ========================================================================== */

.gform_wrapper {
    --gf-color-primary: var(--wp--preset--color--brand-accent) !important;
    --gf-color-primary-darker: color-mix(in oklab, var(--gf-color-primary) 88%, black) !important;
}

.gform_wrapper input[type="submit"] {
    height: fit-content !important;
}


/* ========================================================================== */
/*  THE EVENTS CALENDAR                                                       */
/* ========================================================================== */

:root{
    --tec-color-accent-primary: var(--wp--preset--color--brand-accent) !important;
    --tec-color-accent-primary-hover: color-mix(in oklab, var(--tec-color-accent-primary) 88%, black) !important;
    --tec-color-icon-focus: var(--wp--preset--color--brand-accent);
}

.event-signup .tribe-tickets__tickets-form > p:empty,
.event-signup .tribe-tickets__tickets-form p:empty {
	display: none;
}

.event-signup .tribe-tickets__tickets-form > p {
	margin: 0;
}

.event-signup .tribe-tickets__tickets-form br {
	display: none;
}

.event-signup .tribe-tickets__tickets-form {
	margin-top: 0;
}

.event-signup .tribe-tickets__tickets-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.event-signup .tribe-tickets__ticket-type-header__wrapper {
	margin-top: 0;
	padding-top: 0;
}

.entry .entry-content .event-tickets .tribe-tickets__attendee__fields__footer_checkout-button, .entry .entry-content .event-tickets .tribe-tickets__tickets-buy, .event-tickets .tribe-tickets__attendee__fields__footer_checkout-button, .event-tickets .tribe-tickets__tickets-buy,
.entry .entry-content .event-tickets .tribe-tickets__attendee-tickets-footer-checkout-button.tribe-common-c-btn, .event-tickets .tribe-tickets__attendee-tickets-footer-checkout-button.tribe-common-c-btn{
    border-radius: var(--wp--custom--radius--button);
    transition: 0.2s;
}

.entry .entry-content .event-tickets .tribe-tickets__attendee__fields__footer_checkout-button.tribe-common-c-btn:disabled, .entry .entry-content .event-tickets .tribe-tickets__tickets-buy.tribe-common-c-btn:disabled, .event-tickets .tribe-tickets__attendee__fields__footer_checkout-button.tribe-common-c-btn:disabled, .event-tickets .tribe-tickets__tickets-buy.tribe-common-c-btn:disabled{
    opacity: 0.5;

}

.tribe-tickets__form-field-description {
  white-space: pre-line;
}